/* Shared stylesheet for standalone legal pages (terms.html, privacy.html,
   fr/terms.html, fr/privacy.html). Self-contained, zero third-party requests.
   Colour tokens match the coming-soon stub (index.html) with two additions:
   --link is a darker terracotta shade used for inline text links, since the
   stub's --terracotta (#b85336) is a button-fill colour that reads at ~4.4:1
   on cream — under the 4.5:1 AA threshold for normal text. --link (#8a3f28)
   clears 4.5:1 on both cream and ivory. Likewise --gold-deep (matching
   styles.css's verified --color-gold-deep) is used for the .brand text —
   the stub's own --gold (#8d6a24) reads at ~4.46:1 on cream at 1.4rem
   normal-weight, just under the 4.5:1 threshold. --gold stays for the
   decorative, non-text lang-switch underline (3:1 UI-component threshold). */

:root {
  --ivory: #fdf9f0;
  --cream: #f8f2e7;
  --terracotta: #b85336;
  --link: #8a3f28;
  --gold: #8d6a24;
  --gold-deep: #7a5a1e;
  --ink: #262019;
  --ink-soft: #6b6156;
  --border: #e6dcc8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.65;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 0.6rem 1rem; border-radius: 0 0 0.5rem 0;
  font-size: 0.9rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

.brand {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.4rem;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover, .brand:focus { color: var(--ink); }

.lang-switch {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  white-space: nowrap;
}
.lang-switch:hover, .lang-switch:focus { color: var(--ink); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.doc {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.updated {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}
h2:first-of-type { margin-top: 0; }

h3 {
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

p, ul, ol { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 2px; }

strong { color: var(--ink); font-weight: 700; }

.callout {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--ink); font-weight: 700; }

.back-home {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

footer.site-foot {
  text-align: center;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer.site-foot a { color: inherit; }

@media (max-width: 480px) {
  .top-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
