/* The public pages on site_base.html: privacy, terms and data access. They wear the
   landing page's look (site/src/styles.css: Mist by day, Manrope throughout, titles at
   600), and the top bar and footer here are that page's, kept the same by hand. */

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

:root {
  color-scheme: light;
  --paper: #F2F4F6;
  --surface: #DDE3E9;
  --tint: #E8ECF0;
  --ink: #3C4654;
  --ink-strong: #141B26;
  --ink-soft: #5E6878;
  --rule: #DCE1E7;
  --rule-strong: #AEB6C1;
  --navy: #1B2230;
  --navy-deep: #0E131C;
  --serif: 'Manrope', system-ui, sans-serif;
  --brand: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --grotesk: 'Manrope', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --press: 0 1px 3px rgba(0, 0, 0, .08);
  --quick: .2s ease;
  --card: #FAFBFC;
  --on-navy: #F2F4F6;
  --top-bg: rgba(242, 244, 246, .94);
  --logo-filter: none;
  --slab-face: linear-gradient(160deg, #FAFBFC, #E8ECF0);
  --slab-vein: rgba(174, 182, 193, .2);
  --slab-shadow:
    1px 1px 0 #D9DFE5, 2px 2px 0 #D6DCE2, 3px 3px 0 #D3D9DF, 4px 4px 0 #D0D6DC, 5px 5px 0 #CDD3D9,
    6px 6px 0 #CAD0D6, 7px 7px 0 #C7CDD3, 8px 8px 0 #C4CAD0, 9px 9px 0 #C1C7CD,
    34px 50px 70px rgba(20, 27, 38, .24);
  --float-shadow: 14px 22px 40px rgba(20, 27, 38, .14);
}

/* At night: the app's navy-black ground and cream ink. "Navy" is the colour of the
   primary act, so here it turns cream and what sits on it turns dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17191D;
  --surface: #23262C;
  --tint: #1F2227;
  --card: #1D2025;
  --ink: #CFC9BB;
  --ink-strong: #ECE7DC;
  --ink-soft: #9A9486;
  --rule: #2A2D33;
  --rule-strong: #464A51;
  --navy: #ECE7DC;
  --navy-deep: #FFFFFF;
  --on-navy: #17191D;
  --top-bg: rgba(23, 25, 29, .92);
  --logo-filter: brightness(0) invert(92%) sepia(10%) saturate(180%);
  --press: none;
  --lift: 0 18px 48px rgba(0, 0, 0, .45);
  --slab-face: linear-gradient(160deg, #2A2E35, #1F2227);
  --slab-vein: rgba(236, 231, 220, .07);
  --slab-shadow:
    1px 1px 0 #15171B, 2px 2px 0 #14161A, 3px 3px 0 #131519, 4px 4px 0 #121418, 5px 5px 0 #111317,
    6px 6px 0 #101216, 7px 7px 0 #0F1115, 8px 8px 0 #0E1014, 9px 9px 0 #0D0F13,
    34px 50px 70px rgba(0, 0, 0, .5);
  --float-shadow: 14px 22px 40px rgba(0, 0, 0, .4);
}

html { scroll-behavior: smooth; scroll-padding-top: 124px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--navy); color: var(--paper); }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-strong); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1130px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--navy); color: var(--on-navy); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; transition: top var(--quick);
}
.skip:focus { top: 12px; color: var(--on-navy); }

/* Text links in the bars: an underline that fills in from the left. */
.top-nav a, .foot a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .28s ease, color .16s ease;
}
.foot a { padding-bottom: 2px; }
.foot a[href^="mailto"], .top-nav a:hover, .foot a:hover { background-size: 100% 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 22px;
  background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy); border-radius: 10px;
  font-family: var(--grotesk); font-size: 15px; font-weight: 500; text-decoration: none;
  box-shadow: var(--press);
  transition: background var(--quick), transform var(--quick);
}
.btn:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 8px; font-size: 14px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--top-bg);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--rule);
}
.top-row { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; }
.brand span { font-family: var(--brand); font-weight: 400; font-size: 20px; letter-spacing: -.2px; color: var(--ink-strong); }
/* On a phone the links are a row of their own under the mark and the button. */
.top-nav { order: 3; width: 100%; display: flex; gap: 22px; padding-bottom: 6px; font-family: var(--grotesk); font-size: 14px; font-weight: 500; }
.top-nav a { padding: 8px 0; white-space: nowrap; }
.top-nav a[aria-current="page"] { background-size: 100% 1px; color: var(--ink-strong); }
.top .btn-sm { order: 2; }
/* The top bar's sign-in link is Get started where the full words would push it onto a row of
   its own (they fit beside the mark from 402px); the hero's button keeps the full words. */
.label-short { display: none; }
@media (max-width: 429px) { .label-long { display: none; } .label-short { display: inline; } }

/* The theme switch beside Sign in: one button cycling System, Light, Dark. Its icon is
   the current choice (templates/_theme_head.html sets data-theme-pref). */
.theme-toggle {
  order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -16px;
  background: none; border: 1px solid transparent; border-radius: 8px; color: var(--ink-soft); cursor: pointer;
  transition: color var(--quick), border-color var(--quick);
}
.theme-toggle:hover { color: var(--ink-strong); border-color: var(--rule); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-icon { display: none; }
:root:not([data-theme-pref="light"]):not([data-theme-pref="dark"]) .theme-icon-system,
:root[data-theme-pref="light"] .theme-icon-light,
:root[data-theme-pref="dark"] .theme-icon-dark { display: block; }
.brand img { filter: var(--logo-filter); }

/* A policy: one column of reading, its title in the serif, each part under a rule. */
.doc { width: min(720px, 100% - 48px); margin: clamp(48px, 8vw, 96px) auto clamp(72px, 10vw, 120px); }
.doc h1 {
  font-family: var(--serif); font-weight: 600; color: var(--ink-strong);
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.15; letter-spacing: -.6px;
}
.doc .effective { margin-top: 12px; margin-bottom: 36px; font-family: var(--grotesk); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.doc h2 {
  margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--rule-strong);
  font-family: var(--grotesk); font-weight: 500; color: var(--ink-strong);
  font-size: 22px; line-height: 1.3; letter-spacing: -.3px;
}
.doc h3 { margin: 24px 0 6px; font-family: var(--grotesk); font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.doc p, .doc ul { margin-bottom: 14px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--rule-strong); }
.doc strong { font-weight: 600; color: var(--ink-strong); }
.doc .summary { margin: 0 -28px; padding: 26px 28px 14px; background: var(--surface); border-radius: 22px; }
.doc .summary h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; }

/* Data access: every permission, why it is asked for, and when it is used. A reviewer
   reads these tables beside the consent screens. */
.section { padding-top: clamp(56px, 8vw, 104px); }
.section:last-of-type { padding-bottom: clamp(72px, 10vw, 120px); }
.section h2 {
  font-family: var(--serif); font-weight: 600; color: var(--ink-strong);
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.5px; text-wrap: balance;
}
.section .intro { margin-top: 16px; max-width: 46em; }
.perms { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 15px; line-height: 1.55; text-align: left; }
.perms thead th {
  padding: 0 20px 12px 0; border-bottom: 1px solid var(--rule-strong);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft);
}
.perms tbody th, .perms td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.perms tbody th { width: 24%; font-family: var(--grotesk); font-weight: 500; color: var(--ink-strong); }
.perms td:last-child { width: 28%; padding-right: 0; color: var(--ink-soft); }
.perms tbody tr { transition: background var(--quick); }
.perms tbody tr:hover { background: var(--tint); }
.promise { margin-top: 36px; max-width: 46em; display: grid; gap: 14px; }

.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* A table this wide becomes one block per permission on a phone. */
@media (max-width: 719px) {
  .doc .summary { margin: 0 -12px; padding: 22px 16px 10px; border-radius: 16px; }
  .perms thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .perms, .perms tbody, .perms tr, .perms tbody th, .perms td { display: block; width: auto; }
  .perms tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .perms tbody th, .perms td { padding: 0; border: 0; }
  .perms td { margin-top: 6px; }
  .perms td:last-child { width: auto; font-size: 14px; }
}

@media (min-width: 720px) {
  html { scroll-padding-top: 88px; }
  .top-nav { order: 2; width: auto; gap: 28px; padding-bottom: 0; }
  .theme-toggle { order: 3; }
  .top .btn-sm { order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
