/* TaxSuisse legal pages. Same "Oat & Gold" palette and type as the landing page.
   Load ../css/fonts.css before this file. */

:root {
  --ground: #F3EEE3;
  --surface: #FBF7EE;
  --ink: #262015;
  --muted: #6F6857;
  --hairline: rgba(38, 32, 21, 0.15);
  --accent: #B8860B;
  --accent-deep: #9A7009;
  --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #1C1811;
    --surface: #262117;
    --ink: #EFE8D8;
    --muted: #ABA28C;
    --hairline: rgba(239, 232, 216, 0.16);
    --accent: #E0B95F;
    --accent-deep: #EBCB84;
    --on-accent: #2A2210;
  }
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

img { max-width: 100%; height: auto; }

h1, h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- nav (shared with the landing page) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 21px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.nav a.link:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a.link { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 17px;
  background: var(--accent-deep); color: var(--on-accent);
  border-radius: 999px; padding: 14px 28px;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(154, 112, 9, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(154, 112, 9, 0.85); }
.btn.small { font-size: 15px; padding: 9px 20px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- document ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 0 24px 96px; }

.masthead { padding: 72px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.masthead h1 { font-size: clamp(30px, 5vw, 44px); }
.updated {
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 14px; margin: 0;
}

.doc h2 {
  font-size: 21px;
  margin: 44px 0 12px;
  padding-top: 4px;
}
.doc p, .doc ul { margin: 0 0 1em; max-width: 64ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; color: var(--muted); }
.doc li::marker { color: var(--accent); }
.doc p { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent-deep); text-underline-offset: 3px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  font-size: 13.5px; color: var(--muted);
}
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }
