/* Shared styles for the standalone pages: contact, terms, privacy.
   Tokens match index.html. */

/* ===== Tokens ===== */
:root {
  --bg: #F2E0CF;
  --surface: #FBF5EE;
  --fg: #4A2C20;
  --muted: #5A463C;
  --border: #C6AD9A;
  --accent: #7A452E;

  /* Drop licensed FbPancher files in with @font-face and they take over. */
  --font-display: 'FbPancher', 'Suez One', 'Frank Ruhl Libre', Georgia, serif;
  --font-body: 'Assistant', 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(48px, 7vw, 96px);
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100svh; background: var(--surface); color: var(--fg); font: 400 18px/1.6 var(--font-body); overflow-wrap: break-word; }
main { flex: 1; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 8px 14px; z-index: 30; }
.skip:focus { top: 12px; }

/* ===== Header and footer ===== */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--fg); color: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; width: 104px; height: 48px; }
.brand img { object-fit: contain; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 17px; letter-spacing: .02em; text-underline-offset: 5px; }
.site-footer { padding-block: 44px; background: var(--fg); color: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.site-footer .brand { width: 120px; height: 56px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 44px); }
.footer-links a { display: block; padding: 10px 0; font-weight: 600; font-size: 17px; letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover, .footer-links a[aria-current] { border-color: currentColor; }

/* ===== Legal documents ===== */
.doc-head { padding-block: var(--section) clamp(32px, 4vw, 48px); background: var(--bg); }
.doc-head p { margin-top: 12px; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding-block: var(--section); }
.toc { position: sticky; top: 108px; align-self: start; }
.toc h2 { font: 600 17px/1.4 var(--font-body); letter-spacing: .02em; margin-bottom: 8px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 17px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.doc { max-width: 68ch; min-width: 0; }
.doc section + section { margin-top: clamp(36px, 4vw, 52px); }
.doc h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 14px; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ===== Contact ===== */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.contact-lead { max-width: 44ch; margin-top: 16px; font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); }
.contact-list { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border); }
.contact-row { padding-block: 20px; border-bottom: 1px solid var(--border); }
.contact-row dt { font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.contact-row dd { margin: 2px 0 0; font: 600 clamp(22px, 2.4vw, 30px)/1.3 var(--font-body); }
.contact-row a { text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-row a:hover { color: var(--accent); }
.contact-row address { font-style: normal; }
.contact-photo { aspect-ratio: 3 / 4; max-height: calc(100svh - 140px); width: 100%; border-radius: 999px 999px 0 0; overflow: hidden; }
.contact-photo img { object-position: 50% 62%; }

/* ===== Responsive ===== */
@media (max-width: 859px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-photo { order: -1; aspect-ratio: 4 / 3.4; max-height: none; }
  .contact-photo img { object-position: 50% 58%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
