/* Puff it Off — support and legal pages. Tokens mirror apps/mobile/src/theme/tokens.ts. */

:root {
  color-scheme: light dark;
  --bg: #F6FBF9;
  --surface: #FFFFFF;
  --surface-tint: #E6F6F3;
  --border: #D4E8E4;
  --border-strong: #AFD3CD;
  --text: #10302F;
  --text-2: #4A6665;
  --link: #0B6B67;
  --link-hover: #0A5F5C;
  --primary: #F078AE;
  --primary-edge: #C9588E;
  --on-primary: #10302F;
  --focus: #0B6B67;
  --radius: 18px;
  --measure: 42rem; /* about 65ch of Nunito at 17px; rem so header, main and footer share one edge */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08191A;
    --surface: #0F2426;
    --surface-tint: #173234;
    --border: #1E3D3F;
    --border-strong: #2C5254;
    --text: #EAFDFF;
    --text-2: #9CBCBE;
    --link: #3FD9D9;
    --link-hover: #7FE8E8;
    --primary-edge: #C94A8C;
    --focus: #3FD9D9;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--measure) + 32px); margin: 0 auto; padding-inline: 16px; }

/* Header */
.site-header { border-bottom: 2px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.lang { display: inline-flex; border: 2px solid var(--border-strong); border-radius: 999px; padding: 2px; font-size: 0.875rem; font-weight: 800; }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 36px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: 999px; text-decoration: none; }
.lang span[aria-current] { background: var(--surface-tint); color: var(--text); }

/* Content */
main { padding: 40px 0 56px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem); font-weight: 900; margin: 0 0 8px; }
h2 { font-size: 1.375rem; font-weight: 800; margin: 40px 0 8px; }
h3 { font-size: 1.125rem; font-weight: 800; margin: 28px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 6px; }
.lead { font-size: 1.1875rem; color: var(--text-2); margin-bottom: 20px; }
.meta { font-size: 0.9375rem; color: var(--text-2); margin-bottom: 24px; }
strong { font-weight: 800; }
.path { font-weight: 800; }

/* Intro block on the support page */
.intro { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.intro img { width: 112px; height: 112px; }
@media (max-width: 480px) {
  .intro { grid-template-columns: 1fr; }
  .intro img { order: -1; width: 88px; height: 88px; }
}

/* Cards: the two-line summary at the top of the policy, the contact box */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0 8px; }
.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.contact { border-color: var(--border-strong); border-bottom-width: 4px; margin: 28px 0 8px; }
.contact p { color: var(--text-2); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--primary); color: var(--on-primary); font-weight: 900; text-decoration: none;
  border-radius: 14px; border-bottom: 4px solid var(--primary-edge);
}
.button:hover { color: var(--on-primary); filter: brightness(1.04); text-decoration: none; }
.button:active { transform: translateY(2px); border-bottom-width: 2px; }

.toc { padding-left: 1.25em; }
.toc li { margin-bottom: 4px; }

/* Footer */
.site-footer { border-top: 2px solid var(--border); padding: 24px 0 40px; font-size: 0.9375rem; color: var(--text-2); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { display: inline-block; padding: 6px 0; }
.site-footer p { margin: 0 0 4px; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  main { padding-top: 28px; }
  .brand { font-size: 1.125rem; }
  .brand img { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}

/* "You are here" in the footer nav */
.site-footer nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
