  /* Copenhagen (linen) tokens, matched to the app shell */
  :root {
    color-scheme: light;
    --bg-body: #f0ede6;
    --bg-content: #fdfcfa;
    --bg-secondary: #f5f3ee;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text: #2c2c2c;
    --text-secondary: #666;
    --text-tertiary: #888;
    --link-blue: #1f5189;
    --radius: 2px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body:not(.legal) { height: 100vh; overflow: hidden; }
  body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .logo svg { width: 26px; height: 26px; fill: #1a1a1a; }
  .open-app {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s;
  }
  .open-app:hover { border-bottom-color: #1a1a1a; }

  main:not(.legal) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2.5rem 3rem;
    max-width: 880px;
  }
  h1 {
    font-family: "Times New Roman", Times, Tinos, serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  main:not(.legal) h1 {
    font-size: 2.8rem;
    margin-bottom: 1.4rem;
  }
  h1 em { font-style: normal; font-weight: 400; color: var(--text); }
  .sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 1.1rem;
  }
  .sub:last-of-type { margin-bottom: 2.2rem; }
  .contact {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
  }
  .contact a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
  }
  .contact a:hover { border-bottom-color: var(--text); }

  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem 1.25rem;
    font-size: 0.72rem;
    color: var(--text-tertiary);
  }
  footer .links a {
    color: var(--text-tertiary);
    text-decoration: none;
    margin-left: 1.25rem;
  }
  footer .links a:hover { color: var(--text-secondary); }

  @media (max-width: 720px) {
    html, body:not(.legal) { height: 100%; height: 100dvh; overflow: hidden; }
    nav, main, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
    nav { padding-top: 1rem; padding-bottom: 1rem; }
    main:not(.legal) { padding-top: 0.5rem; padding-bottom: 1rem; }
    main:not(.legal) h1 { font-size: clamp(1.1rem, 6.1vw, 2.2rem); line-height: 1.2; white-space: nowrap; margin-bottom: 1.1rem; }
    .sub { font-size: 1rem; line-height: 1.65; max-width: none; margin-bottom: 0.9rem; }
    .contact { font-size: 1rem; line-height: 1.7; }
    .contact a { overflow-wrap: anywhere; }
    footer { padding-top: 1rem; padding-bottom: 1.25rem; }
  }
  @media (max-width: 400px) {
    .sub, .contact { font-size: 0.97rem; }
  }
  @media (max-width: 720px) and (max-height: 560px) {
    html, body:not(.legal) { overflow: auto; height: auto; min-height: 100dvh; }
  }
  @media (max-width: 300px) {
    main:not(.legal) h1 { white-space: normal; font-size: 1.5rem; }
  }

  /* ---------------------------------------------------------------- */
  /* Legal pages (terms.html, privacy.html)                            */
  /* ---------------------------------------------------------------- */
  main.legal {
    display: block;
    max-width: 680px;
    padding: 3rem 2.5rem 4rem;
  }
  main.legal h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  main.legal .effective {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-tertiary);
    margin-bottom: 2.25rem;
  }
  main.legal .intro {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2.25rem;
  }
  main.legal .toc {
    margin-bottom: 2.5rem;
  }
  main.legal .toc-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.65rem;
  }
  main.legal .toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin-bottom: 0;
  }
  main.legal .toc li {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 0.2rem 0;
  }
  main.legal .toc a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s;
  }
  main.legal .toc a:hover { border-bottom-color: var(--border-strong); }
  main.legal h2 {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    margin: 2.75rem 0 0.85rem;
  }
  main.legal h3 {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
  }
  main.legal p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 0.9rem;
  }
  main.legal p.legal-caps {
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }
  main.legal ul, main.legal ol {
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    max-width: 680px;
  }
  main.legal li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
  }
  main.legal p a, main.legal li a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
    transition: border-color 0.15s;
  }
  main.legal p a:hover, main.legal li a:hover { border-bottom-color: var(--text); }
  main.legal .foot {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-tertiary);
  }
  main.legal .foot a {
    color: var(--text-tertiary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
  }
  main.legal .foot a:hover { color: var(--text-secondary); border-bottom-color: var(--border-strong); }

  @media (max-width: 720px) {
    main.legal { padding-top: 6.5rem; }
    main.legal h1 { font-size: 1.7rem; }
  }
