/* The night theme for the legal pages: the app's black sky, starlight text, Poppins headings and Atkinson body. */

@font-face { font-family: "Poppins"; font-weight: 200; font-display: swap; src: url(assets/fonts/poppins-200.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url(assets/fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(assets/fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(assets/fonts/atkinson-700.woff2) format("woff2"); }

:root {
  --bg: #000000;
  --ink: #F2F4F8;
  --muted: #98A0B3;
  --glow: #DCE8FF;
  --gold: #D9B46A;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  /* Long links like policies.google.com/... must wrap on narrow phones instead of scrolling sideways. */
  overflow-wrap: anywhere;
  font: 400 17px/1.7 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* A still sky behind the text. Fixed as its own layer so it never scrolls or repaints with the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg) url(assets/img/sky-still.svg) center top / 1200px 1200px repeat;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

::selection { background: rgba(220, 232, 255, 0.28); color: #fff; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

header .wrap { display: flex; align-items: center; min-height: 72px; }
header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font: 500 13px/1 var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
header a::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: none;
  background: url(assets/logo/mark-animated.svg) center / contain no-repeat;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 24px; padding-bottom: 80px; }

h1 {
  font: 200 clamp(2rem, 1.4rem + 3vw, 3rem)/1.1 var(--display);
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
}
h2 {
  font: 300 1.5rem/1.25 var(--display);
  margin: 2.8rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
h3 { font: 300 1.15rem/1.3 var(--display); margin: 1.8rem 0 0.4rem; color: var(--glow); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: 0.4em 0; }
li::marker { color: var(--muted); }
strong { font-weight: 700; color: #fff; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(220, 232, 255, 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
a:hover { color: #fff; text-decoration-color: var(--glow); }

.updated { color: var(--muted); margin: 0 0 1.6rem; font-size: 15px; }
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 1.4rem;
}

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; background: rgba(0, 0, 0, 0.5); }
footer .wrap { padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); text-decoration-color: transparent; padding: 6px 0; }
footer a:hover { color: var(--ink); }

/* The retention and category tables in the policies: ruled, and scrollable sideways on a phone rather than squeezed. */
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 15px;
  line-height: 1.5;
}
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 120px; }
th {
  background: var(--surface-2);
  font: 500 11px/1.3 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}
td { background: rgba(0, 0, 0, 0.35); }

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  body::before, body::after, header a::before { display: none; }
  body, html { background: #fff; color: #000; }
  a { color: #000; }
  h3 { color: #000; }
  .note, td, th { background: none; border-color: #999; }
  footer { display: none; }
}
