/* ================================================================
   AdMun — Global Stylesheet
   admun.eu  |  KVK 84121998  |  BTW NL003915624B42
   Jurisdiction: Netherlands & EU
   ================================================================ */

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  --admun-green:     #1D9E75;
  --admun-dark:      #0a3826;
  --admun-mid:       #0F6E56;
  --admun-light:     #9FE1CB;
  --admun-bg:        #f0faf6;
  --admun-border:    #c5e8d8;
  --white:           #ffffff;
  --surface:         #f8f8f8;
  --text:            #1a1a1a;
  --text-muted:      #5c6370;
  --border:          #e2e2e2;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.05);
  --shadow:          0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:       0 12px 48px rgba(0,0,0,0.10);
  --radius-xs:       4px;
  --radius-sm:       6px;
  --radius:          12px;
  --font:            'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:           1200px;
  --transition:      0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--admun-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--admun-dark); text-decoration: underline; }
address { font-style: normal; }

/* ── Skip Link (Accessibility) ─────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--admun-dark); color: white; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ── Header ─────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none !important; flex-shrink: 0;
}
.logo-admun {
  font-size: 1.35rem; font-weight: 800;
  color: var(--admun-dark); letter-spacing: -0.5px;
}
.logo-pipe { color: var(--border); margin: 0 0.1rem; }
.logo-sub {
  font-size: 0.72rem; font-weight: 600;
  color: var(--admun-green); text-transform: uppercase; letter-spacing: 0.07em;
}

/* Nav */
#main-nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
#main-nav a {
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  padding: 0.4rem 0.65rem; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap; text-decoration: none;
}
#main-nav a:hover { background: var(--admun-bg); color: var(--admun-dark); }
.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.4rem 0.6rem;
  font-size: 1.1rem; cursor: pointer; color: var(--text);
}

/* ── Page Hero ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--admun-dark) 0%, var(--admun-mid) 100%);
  padding: 4rem 2rem 3.5rem; color: white;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: "ADMUN"; position: absolute; right: -2rem; bottom: -1.5rem;
  font-size: 10rem; font-weight: 900; color: rgba(255,255,255,0.04);
  pointer-events: none; letter-spacing: -4px; user-select: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }

.breadcrumb {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: white; }

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 0.75rem; color: white;
}
.page-meta {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  font-weight: 400; line-height: 1.6; max-width: 680px;
}
.dutch-note {
  margin-top: 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.5);
  font-style: italic; border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 0.75rem;
}

/* ── AdMun Identity Banner ─────────────────────────────────────── */
.admun-banner {
  background: var(--admun-bg); border-bottom: 1px solid var(--admun-border);
  padding: 1rem 2rem;
}
.admun-banner-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.admun-logo-block { display: flex; align-items: center; gap: 0.75rem; }
.admun-logo-block strong {
  display: block; font-weight: 800; color: var(--admun-dark);
  font-size: 1rem; letter-spacing: -0.3px;
}
.admun-logo-block span { font-size: 0.75rem; color: var(--text-muted); }
.admun-details {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.79rem; color: var(--text-muted);
}
.admun-details a { color: var(--admun-green); }
.admun-reg { font-weight: 700; color: var(--admun-dark); }
.admun-brands {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.78rem;
}
.brand-label { color: var(--text-muted); font-weight: 600; }
.admun-brands a {
  background: white; border: 1px solid var(--admun-border);
  padding: 0.2rem 0.6rem; border-radius: 100px;
  color: var(--admun-mid); font-size: 0.75rem; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
}
.admun-brands a:hover { background: var(--admun-green); color: white; border-color: var(--admun-green); }

/* ── Content Layout ─────────────────────────────────────────────── */
.content-wrap {
  max-width: var(--max-w); margin: 2.5rem auto 3rem;
  padding: 0 2rem;
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  align-items: start;
}

/* ── TOC Sidebar ────────────────────────────────────────────────── */
.toc-sidebar {
  position: sticky; top: 78px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 96px); overflow-y: auto;
}
.toc-heading {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.5rem;
}
#toc-links { display: flex; flex-direction: column; gap: 1px; }
#toc-links a, .sidebar-legal-links a {
  display: block; font-size: 0.78rem; color: var(--text);
  padding: 0.3rem 0.5rem; border-radius: var(--radius-xs);
  text-decoration: none; line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
#toc-links a:hover, .sidebar-legal-links a:hover {
  background: var(--admun-bg); color: var(--admun-dark);
}
#toc-links a.toc-sub {
  padding-left: 1.25rem; font-size: 0.73rem; color: var(--text-muted);
}
.sidebar-legal-links { display: flex; flex-direction: column; gap: 1px; margin-top: 0.25rem; }

/* ── Content Card ───────────────────────────────────────────────── */
.content-card {
  background: var(--white); border-radius: var(--radius);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
  min-width: 0;
}

/* Typography */
.content-card h1, .content-card h2, .content-card h3, .content-card h4 {
  color: var(--admun-dark); line-height: 1.25; font-weight: 700;
}
.content-card h2 {
  font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--admun-border);
  scroll-margin-top: 90px;
}
.content-card h3 {
  font-size: 1.05rem; margin-top: 1.75rem; margin-bottom: 0.6rem;
  scroll-margin-top: 90px; font-weight: 600;
}
.content-card h4 { font-size: 0.95rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.content-card p  { margin-bottom: 1.15rem; font-size: 0.97rem; }
.content-card ul, .content-card ol { margin: 0 0 1.15rem 1.5rem; }
.content-card li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.content-card a  { color: var(--admun-green); font-weight: 500; }
.content-card a:hover { color: var(--admun-dark); }

.content-card table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; overflow-x: auto; display: block; }
.content-card th {
  background: var(--admun-bg); color: var(--admun-dark);
  font-weight: 700; text-align: left;
  padding: 0.75rem 1rem; border: 1px solid var(--admun-border);
  white-space: nowrap;
}
.content-card td { padding: 0.65rem 1rem; border: 1px solid var(--border); vertical-align: top; }
.content-card tr:nth-child(even) td { background: #fafffe; }
.content-card tr:hover td { background: var(--admun-bg); }

.content-card blockquote {
  border-left: 4px solid var(--admun-green); background: var(--admun-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0; color: var(--text-muted); font-style: italic;
}
.content-card code {
  background: #f4f4f5; padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  font-family: 'Menlo','Courier New', monospace; font-size: 0.85em;
  color: var(--admun-mid);
}
.content-card pre { background: #0a3826; padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; margin-bottom: 1.5rem; }
.content-card pre code { background: none; color: #9FE1CB; font-size: 0.88em; }
.content-card hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--admun-dark); color: rgba(255,255,255,0.75);
  margin-top: 4rem; padding-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 2rem;
}
.footer-brand .logo-admun {
  font-size: 1.6rem; font-weight: 900; color: white;
  display: block; margin-bottom: 0.35rem; letter-spacing: -1px;
}
.footer-tagline {
  font-size: 0.74rem; color: var(--admun-light);
  text-transform: uppercase; letter-spacing: 0.07em;
  display: block; margin-bottom: 0.85rem;
}
.footer-address {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  line-height: 1.8; margin-bottom: 0.5rem;
}
.footer-reg {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.5); margin-top: 0.5rem;
}
.footer-links-group h3 {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--admun-light); margin-bottom: 0.85rem;
}
.footer-links-group a {
  display: block; font-size: 0.82rem;
  color: rgba(255,255,255,0.6); margin-bottom: 0.45rem;
  text-decoration: none; transition: color var(--transition);
}
.footer-links-group a:hover { color: white; }
.footer-ap-link {
  font-size: 0.73rem !important; margin-top: 0.5rem;
  color: var(--admun-light) !important; border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-size: 0.77rem;
  color: rgba(255,255,255,0.35); flex-wrap: wrap;
}
.footer-bottom strong { color: rgba(255,255,255,0.65); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a {
  color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.77rem;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: white; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .toc-sidebar  { position: static; max-height: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  #main-nav {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 0.75rem; gap: 0.25rem; box-shadow: var(--shadow);
  }
  #main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .content-card  { padding: 1.5rem; }
  .page-hero     { padding: 2.5rem 1rem 2rem; }
  .content-wrap  { padding: 0 1rem; margin: 1.5rem auto; }
  .admun-banner  { padding: 0.75rem 1rem; }
  .admun-brands  { display: none; }
  .footer-inner  { grid-template-columns: 1fr; padding: 0 1rem 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media print {
  header, .toc-sidebar, .admun-banner, footer { display: none; }
  .content-wrap { grid-template-columns: 1fr; }
  .content-card { box-shadow: none; border: none; padding: 0; }
}
