/*
  App Freezer's legal pages, in App Freezer's own look (see /app-freezer/index.html): the icon's
  ice-blue snowflake and its cold glow on glacier white, Archivo on its width axis, and the polar
  footer. The title band is the app's hero, with the big snowflake drawn faintly behind it; lists
  are marked with the app's small snowflakes.
*/
:root {
  --snow: #f5f9fe;
  --white: #ffffff;
  --glacier: #e2edfa;
  --glacier-2: #d6e7fa;
  --frost: #c6dbf3;
  --ice: #9fd4ff;
  --floe: #1c6fe0;
  --signal: #1559d6;
  --deep: #0b4fb0;
  --polar: #0b1a2e;
  --ink: #0b1a2e;
  --slate: #4a5c74;
  --line: #d4e2f2;
  --lift: 0 1px 2px rgba(11, 79, 176, .06), 0 14px 34px -18px rgba(11, 79, 176, .28);
  --flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c6fe0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg id='a'%3E%3Cpath d='M12 12V2.5M9 5l3 3 3-3'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate(60 12 12)'/%3E%3Cuse href='%23a' transform='rotate(120 12 12)'/%3E%3Cuse href='%23a' transform='rotate(180 12 12)'/%3E%3Cuse href='%23a' transform='rotate(240 12 12)'/%3E%3Cuse href='%23a' transform='rotate(300 12 12)'/%3E%3C/svg%3E");
  --big-flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg id='a' fill='none' stroke='%23a9d3fb' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -14V-96M0 -34l-17 -17M0 -34l17 -17M0 -58l-14 -14M0 -58l14 -14M0 -80l-8 -8M0 -80l8 -8M-11 -44l-9 4M11 -44l9 4'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate%2860%29'/%3E%3Cuse href='%23a' transform='rotate%28120%29'/%3E%3Cuse href='%23a' transform='rotate%28180%29'/%3E%3Cuse href='%23a' transform='rotate%28240%29'/%3E%3Cuse href='%23a' transform='rotate%28300%29'/%3E%3Cpolygon points='0,-14 12.1,-7 12.1,7 0,14 -12.1,7 -12.1,-7' fill='none' stroke='%23a9d3fb' stroke-width='1'/%3E%3C/svg%3E");
  --col: 36rem;
  --gut: 28px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ice); color: var(--ink); }
a { color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--floe); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--col), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- title band: the app's cold hero, the big snowflake behind it ---------- */
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--glacier-2) 0%, #e7f1fc 58%, var(--snow) 100%);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: var(--big-flake) right -230px top -170px / 940px 940px no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
}
.top {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 22px 0;
  width: min(1180px - 56px, 100% - 2 * var(--gut)); margin-inline: auto;
}
.top .app { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 750; font-stretch: 112%; font-size: 1.05rem; letter-spacing: -.01em; }
.top .app img { width: 38px; height: 38px; border-radius: 10px; }
.top .play-mini {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--frost); color: var(--ink);
  text-decoration: none; font-size: .88rem; font-weight: 650;
}
.top .play-mini svg { width: 15px; height: 15px; color: var(--signal); }
.top .play-mini:hover { background: var(--white); }
.top .by { color: var(--slate); text-decoration: none; font-size: .88rem; }
.top .by:hover { color: var(--ink); text-decoration: underline; }

.band > .wrap { position: relative; z-index: 1; }
.hero { padding: 40px 0 76px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-stretch: 112%; font-weight: 700; font-size: .95rem; letter-spacing: -.005em; color: var(--deep);
}
.eyebrow::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--flake) center / contain no-repeat; }
h1 {
  margin: 0 0 28px; font-stretch: 125%; font-weight: 800; letter-spacing: -.032em; line-height: .98;
  font-size: clamp(2.3rem, 5vw, 4rem); color: var(--ink); text-wrap: balance;
}
/* The meta lines as the app's frosted fact chips. */
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span {
  font-size: .9rem; line-height: 1.45; color: var(--slate); padding: 6px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(198, 219, 243, .95);
}
.meta b { color: var(--ink); font-weight: 650; }
.meta code { background: none; padding: 0; color: var(--deep); }

/* ---------- contents ---------- */
.toc {
  margin: 8px 0 8px; padding: 26px 30px 22px; background: var(--white);
  border-radius: 20px; box-shadow: inset 0 0 0 1px var(--frost), var(--lift);
}
.toc h2 { margin: 0 0 12px; font-stretch: 112%; font-size: .92rem; font-weight: 700; color: var(--slate); }
.toc ol { margin: 0; padding-left: 1.7em; columns: 2; column-gap: 30px; }
.toc li { margin: 0 0 7px; break-inside: avoid; font-size: .97rem; line-height: 1.45; }
.toc li::marker { font-stretch: 112%; font-weight: 700; color: var(--deep); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--signal); text-decoration: underline; }

/* ---------- the document ---------- */
main { padding: 20px 0 96px; }
section { padding: 40px 0 10px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
section:first-of-type { border-top: 0; }
h2.sec {
  margin: 0 0 18px; font-stretch: 125%; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink); text-wrap: balance;
}
h3 { margin: 30px 0 8px; font-stretch: 112%; font-weight: 700; font-size: 1.14rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 18px; }
p, li, td { text-wrap: pretty; }
/* Lists carry the app's small snowflakes. */
ul { margin: 0 0 18px; padding: 0; list-style: none; }
ul > li { position: relative; margin: 0 0 10px; padding-left: 30px; }
ul > li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: var(--flake) center / contain no-repeat; }
strong, b { font-weight: 700; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84em; color: var(--ink);
  background: var(--glacier); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere;
}

/* Tables: a white card; wide ones scroll inside it on a phone. */
.table-scroll {
  --w: min(820px, 100vw - 2 * var(--gut));
  width: var(--w); margin: 6px 0 24px calc((100% - var(--w)) / 2);
  overflow-x: auto; background: var(--white); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--frost), var(--lift); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; min-width: 560px; }
table:has(th:nth-child(4)) { min-width: 720px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { font-stretch: 112%; font-size: .86rem; font-weight: 700; color: var(--ink); background: var(--glacier); border-bottom-color: var(--frost); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { width: 30%; }

/* Callouts: the app's note, frosted, with a snowflake. */
.callout {
  position: relative; margin: 8px 0 24px; padding: 18px 22px 18px 56px;
  background: var(--glacier); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--frost);
}
.callout::before { content: ""; position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; background: var(--flake) center / contain no-repeat; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer, polar, as on the app's page ---------- */
footer { background: var(--polar); color: #a7b8cf; padding: 40px 0 48px; font-size: .92rem; line-height: 1.6; }
footer .wrap { width: min(1180px - 56px, 100% - 2 * var(--gut)); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { color: #e6eef8; text-decoration: none; }
footer a:hover { color: var(--ice); text-decoration: underline; }

@media (max-width: 760px) {
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 17px; }
  .top { gap: 12px; padding: 16px 0; }
  .top .app span { display: none; }
  .top .play-mini { padding: 7px 11px 7px 9px; }
  .band::before { background-position: right -300px top -160px; background-size: 640px 640px; opacity: .45; }
  .hero { padding: 24px 0 56px; }
  .toc { padding: 22px 20px 18px; }
  th, td { padding: 12px 14px; }
  .callout { padding: 16px 18px 16px 48px; }
  .callout::before { left: 16px; top: 19px; width: 20px; height: 20px; }
  /* Two-column tables stack on a phone: the permission on its own line, the reason under it.
     Wider tables keep scrolling inside their card. */
  table:not(:has(th:nth-child(3))) { min-width: 0; }
  table:not(:has(th:nth-child(3))) :is(tbody, tr, td) { display: block; width: auto; }
  table:not(:has(th:nth-child(3))) thead tr { display: flex; gap: 6px 14px; flex-wrap: wrap; padding: 12px 16px 11px; background: var(--glacier); border-bottom: 1px solid var(--frost); }
  table:not(:has(th:nth-child(3))) th { padding: 0; border: 0; background: none; }
  table:not(:has(th:nth-child(3))) tr { padding: 14px 16px 15px; border-bottom: 1px solid var(--line); }
  table:not(:has(th:nth-child(3))) tbody tr:last-child { border-bottom: 0; }
  table:not(:has(th:nth-child(3))) td { padding: 0; border: 0; }
  table:not(:has(th:nth-child(3))) td:first-child { margin-bottom: 5px; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
