/* The privacy policy at yumnesia.app/privacy (src/privacy.js). It wears the
   landing page's fonts, palette, header, buttons and footer (landing.css);
   keep the shared rules the same in both. */

@font-face { font-family: Playfair; src: url(/get/fonts/PlayfairDisplay-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Comme; src: url(/get/fonts/Comme-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Comme; src: url(/get/fonts/Comme-SemiBold.ttf); font-weight: 600; font-display: swap; }

/* The app's light and dark palettes (lib/core/theme/app_theme.dart). --text
   is darker than the landing page's --muted: this page is read at length. */
:root {
  --bg: #F9F9F9; --card: #FFFFFF; --header: #FFE6E3; --title: #333333; --text: #4A4A4A; --muted: #666666;
  --strong: #C43535; --on-strong: #FFFFFF; --line: #ECE4E2; --chip-bg: #FFE6E3; --chip-fg: #C43535;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-height: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --card: #1E1E1E; --header: #261E18; --title: #EAEAEA; --text: #C4C4C4; --muted: #9E9E9E;
    --strong: #FFB783; --on-strong: #261E18; --line: #2C2C2E; --chip-bg: #322722; --chip-fg: #E0C1AE;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 Comme, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: Playfair, Georgia, serif; font-weight: 500; color: var(--title); }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg.ic { width: 1.4em; height: 1.4em; flex: none; }
.logo.dark { display: none; }
@media (prefers-color-scheme: dark) { .logo.light { display: none; } .logo.dark { display: block; } }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; border-radius: 6px; }

.button { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 26px; background: var(--strong); color: var(--on-strong); font-weight: 600; text-decoration: none; transition: transform 0.25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button.small { height: 40px; padding: 0 18px; font-size: 15px; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); padding: 0 clamp(16px, 4vw, 48px); transition: background 0.3s, box-shadow 0.3s; }
.nav.stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand .logo { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 16px; }
.langs { display: inline-flex; gap: 4px; font-size: 14px; font-weight: 600; }
.langs a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { color: var(--strong); }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* The answer first: the policy in one sentence, on the landing page's blush
   panel, and beside it the four things most people came to check. */
.top { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px clamp(32px, 6vw, 96px); margin-top: 16px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); border-radius: 40px; background: var(--header); }
.kicker { font: 500 clamp(17px, 1.6vw, 21px)/1.4 Playfair, Georgia, serif; font-style: italic; color: var(--strong); margin-bottom: 16px; }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 30em; margin-top: 24px; }
.checks { display: grid; gap: 16px; color: var(--title); font-weight: 600; line-height: 1.35; }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--strong); color: var(--on-strong); }

/* The contents stay beside the policy while it scrolls. */
.layout { display: grid; grid-template-columns: 232px minmax(0, 43em); justify-content: center; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 8vh, 88px) 0 72px; }
.contents { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; max-height: calc(100vh - var(--nav-height) - 48px); overflow-y: auto; font-size: 15px; line-height: 1.35; }
.contents p { font: 500 18px/1.3 Playfair, Georgia, serif; color: var(--title); margin: 0 0 12px 16px; }
.contents ol { border-left: 1px solid var(--line); }
.contents a { display: block; margin-left: -1px; padding: 7px 16px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.contents a:hover { color: var(--title); }
.contents a[aria-current] { color: var(--strong); border-left-color: var(--strong); font-weight: 600; }

.policy { min-width: 0; }
.policy p { overflow-wrap: break-word; }
.policy p + p, .policy p + ul, .policy p + dl, .policy ul + p, .policy dl + p { margin-top: 18px; }
.policy a { color: var(--strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.policy a:hover { text-decoration-thickness: 2px; }
.policy b { font-weight: 600; color: var(--title); }
.dates { font-size: 15px; color: var(--muted); }
.policy .intro { margin-top: 12px; }
.policy section { margin-top: 64px; scroll-margin-top: calc(var(--nav-height) + 24px); }
h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -0.005em; text-wrap: balance; margin-bottom: 20px; }

.points { display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--strong); }

/* What leaves the phone, and who receives it: one row each, the destination
   named beside the data. */
.ledger { border: 1px solid var(--line); border-radius: 24px; background: var(--card); overflow: hidden; }
.ledger > * { padding: 22px 24px 24px; }
.ledger > * + * { border-top: 1px solid var(--line); }
.ledger dt, .ledger h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; font: 500 21px/1.25 Playfair, Georgia, serif; color: var(--title); }
.ledger dt em { padding: 5px 12px; border-radius: 9em; background: var(--chip-bg); color: var(--chip-fg); font: 600 13px/1.3 Comme, system-ui, sans-serif; }
.ledger dd, .ledger li p { font-size: 16px; line-height: 1.6; }
.ledger h3 small { font: 400 14px/1.3 Comme, system-ui, sans-serif; color: var(--muted); }
.out { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px; font-size: 14px; color: var(--muted); }
footer .logo { height: 36px; width: auto; }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr; border-radius: 32px; }
  /* The contents become one row of links, stuck under the header and
     scrolled sideways inside itself, never the page. */
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .contents { top: var(--nav-height); z-index: 10; max-height: none; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 10px clamp(16px, 4vw, 48px); background: var(--bg); box-shadow: 0 1px 0 var(--line); overflow: auto hidden; scrollbar-width: none; }
  .contents p { display: none; }
  .contents ol { display: flex; gap: 8px; width: max-content; border: 0; }
  .contents a { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9em; background: var(--card); white-space: nowrap; }
  .contents a[aria-current] { border-color: var(--strong); background: var(--strong); color: var(--on-strong); }
  .policy { padding-top: 32px; }
  .policy section { margin-top: 48px; scroll-margin-top: calc(var(--nav-height) + 76px); }
  .ledger > * { padding: 18px 18px 20px; }
  footer { justify-content: center; text-align: center; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .nav, .contents, footer, .button { display: none; }
  .top { padding: 0; background: none; }
  .layout { display: block; padding: 24px 0 0; }
  .ledger { border-radius: 0; }
  .ledger > * { break-inside: avoid; }
  h2 { break-after: avoid; }
}
