/* Shared styles for the legal pages (privacy.html, terms.html).
   Same TimoraHub tokens as index.html. */
:root {
  --ink: #0b0b0c;
  --muted: #5d5653;
  --cream: #fff6f3;
  --card: #ffffff;
  --line: #f3dcd5;
  --petal: #ffcdc5;
  --coral: #d9512f;
  --coral-bright: #f4785f;
  --core: #ff8a7a;
  --pad: clamp(18px, 3.2vw, 46px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(22px, 4.5vw, 58px);
  padding: 16px var(--pad); background: rgba(255,246,243,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin-right: clamp(0px, 2vw, 30px); }
.logo img { width: 52px; height: 52px; display: block; margin: -6px 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(217,81,47,.14); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.nav__links { display: flex; gap: clamp(18px, 3.5vw, 44px); font-size: 15.5px; }
.nav__links a { position: relative; color: var(--muted); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; background: #000; color: #fff; transition: transform .25s; }
.nav__cta:hover { transform: translateY(-1px); }

/* HEADER */
.head { position: relative; padding: clamp(56px, 10vh, 110px) var(--pad) clamp(40px, 7vh, 70px); overflow: hidden; }
.head::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,120,95,.28) 0%, rgba(244,120,95,0) 65%); pointer-events: none; }
.head__inner { max-width: 1100px; margin: 0 auto; position: relative; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.head h1 { margin-top: 14px; font-weight: 800; font-size: clamp(38px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
.dates { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.dates span { font-size: 13.5px; color: var(--muted); padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.dates b { color: var(--ink); font-weight: 600; }

/* LAYOUT */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad) 90px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 1.5px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent; font-size: 14px; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--coral); border-color: var(--coral); font-weight: 600; }

/* CONTENT */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4.5vw, 56px); }
.doc section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(21px, 2vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.doc h2 .n { flex: none; font-size: .78em; font-weight: 700; color: var(--coral); font-variant-numeric: tabular-nums; }
.doc p, .doc li { font-size: 16px; line-height: 1.68; color: #3b3533; }
.doc p { margin-top: 14px; }
.doc ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.doc li { position: relative; padding-left: 26px; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--core); box-shadow: 0 0 0 3px rgba(255,138,122,.18); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: #fdeee9; color: var(--coral); }
.path { white-space: nowrap; font-weight: 600; color: var(--ink); }
.doc a.link { color: var(--coral); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.callout { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, #fff1ec, #ffe4dc); border: 1px solid #ffd3c7; }
.callout p { margin-top: 0; }
.contact { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: #000; color: #fff; font-weight: 600; font-size: 15.5px; transition: transform .25s; }
.contact:hover { transform: translateY(-2px); }
.contact svg { width: 18px; height: 18px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); padding: 40px var(--pad) 46px; }
.foot__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: end; }
.foot strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.foot span { font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 14.5px; font-weight: 500; }
.foot nav a:hover { color: var(--coral); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; }
  .toc a.active { border-color: var(--coral); }
}
@media (max-width: 560px) {
  .nav__links { display: none; }
  .logo span { display: none; }
  .doc { border-radius: 18px; }
  .doc p, .doc li { font-size: 15.5px; }
  .path { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
