/* Legal pages of ido-planner.com: the portal's public/legal/legal.css plus the site's own fonts
   (fonts/, the same Latin + Latin Extended subsets as the landing page) and its back-to-top button. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-400.woff') format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-600.woff') format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-700.woff') format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-800.woff') format('woff');
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/great-vibes-400.woff') format('woff');
}

:root {
  --bg: #f7f2e9;
  --bg-soft: #f0e9dc;
  --surface: #ffffff;
  --surface-2: #f8f4ec;
  --ink: #2b241a;
  --ink-soft: #5a5140;
  --muted: #8c8270;
  --gold: #c9a257;
  --gold-2: #e0c27c;
  --gold-deep: #a9853d;
  --gold-soft: rgba(201, 162, 87, 0.16);
  --line: rgba(43, 36, 26, 0.1);
  --shadow-soft: 0 10px 30px -14px rgba(70, 56, 28, 0.22);
  --on-gold: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110b;
    --bg-soft: #1b160f;
    --surface: #221b11;
    --surface-2: #2a2216;
    --ink: #f4ecda;
    --ink-soft: #d6cab0;
    --muted: #a0937a;
    --gold: #d9b46a;
    --gold-2: #e8cd8a;
    --gold-deep: #bd9650;
    --gold-soft: rgba(217, 180, 106, 0.16);
    --line: rgba(244, 236, 218, 0.1);
    --shadow-soft: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
    --on-gold: #241c0e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(860px, 100% - 48px); margin-inline: auto; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 0 6px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo .script {
  white-space: nowrap;
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo .wordmark {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang { display: flex; gap: 6px; }
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  border-color: transparent;
  color: #fff;
}
.lang button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.hero { padding: 26px 0 6px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 6px 0 10px;
  text-wrap: balance;
}
.lede { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 62ch; }
.meta { color: var(--muted); font-size: 14px; margin-top: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
  margin: 22px 0;
}
h2 { font-size: 22px; font-weight: 800; margin: 30px 0 8px; line-height: 1.25; }
.card > h2:first-child, .card > section:first-child > h2 { margin-top: 0; }
section + section { margin-top: 26px; }
p { margin: 0; }
p + p { margin-top: 10px; }
ul, ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
li::marker { color: var(--gold-deep); font-weight: 800; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
strong { font-weight: 800; }

.steps { counter-reset: step; list-style: none; padding: 0; gap: 10px; margin-top: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.note {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 12px 12px 0;
  margin-top: 12px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
tr:last-child td { border-bottom: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  box-shadow: var(--shadow-soft);
}
.btn:hover { color: #fff; filter: brightness(1.04); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--gold-deep); border-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

footer {
  margin: 40px 0 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .container { width: min(860px, 100% - 32px); }
  .card { padding: 20px 18px; border-radius: 14px; }
  body { font-size: 16px; }
}

/* back to top, as on the landing page */
.to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--on-gold);
  box-shadow: 0 12px 26px -10px rgba(168, 133, 59, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.2s ease, visibility 0s linear 0.25s;
}
.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.2s ease, visibility 0s;
}
.to-top--visible:hover { color: var(--on-gold); transform: translateY(-2px); filter: saturate(1.06); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top, .to-top--visible { transition: none; }
}
