/* Páginas de documento do GluteMax (privacidade, regras, exclusão de conta).
   Mesmos tokens do app (lib/theme.dart): rosé claro e ameixa escuro. */
:root {
  color-scheme: light dark;
  --bg: #FBF7F6; --surface: #FFFFFF; --raised: #F4ECEB; --soft: #F9E8EF;
  --ink: #1E1519; --muted: #6B5E65; --border: #EDE3E3; --accent: #B02A62;
  --coral: #FF8AB2; --obsidian: #1E1519;
  --r: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161114; --surface: #211A1E; --raised: #2C2328; --soft: #3A2430;
    --ink: #F4EFF2; --muted: #B5A8AF; --border: #33292F; --accent: #F283AA;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility; touch-action: manipulation;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip:focus-visible { top: 12px; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Topo: marca e volta ao app */
.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  font: 800 24px/1 Outfit, system-ui, sans-serif; letter-spacing: -.5px;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.brand span { color: var(--accent); }
.app {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--coral); color: var(--obsidian); font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 2px 8px rgb(30 21 25 / .14);
  transition: filter .15s, transform .15s;
}
.app:hover { filter: brightness(1.05); text-decoration: none; }
.app:active { transform: translateY(1px); }

/* Documento */
main { padding: 48px 0 72px; }
.kicker {
  margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
h1 {
  margin: 0 0 16px; font: 800 clamp(32px, 6vw, 46px)/1.08 Outfit, system-ui, sans-serif;
  letter-spacing: -.02em; text-wrap: balance;
}
.lead { margin: 0 0 8px; font-size: 19px; color: var(--ink); text-wrap: pretty; }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
h2 {
  margin: 44px 0 10px; font: 700 23px/1.25 Outfit, system-ui, sans-serif;
  letter-spacing: -.01em; text-wrap: balance; scroll-margin-top: 24px;
}
p, li { text-wrap: pretty; overflow-wrap: anywhere; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
b, strong { font-weight: 700; }

/* Caixa de destaque (contato, passos) */
.card {
  margin: 20px 0; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
}
.card > :last-child { margin-bottom: 0; }

/* Rodapé: outros documentos */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--accent); }
.foot nav a[aria-current="page"] { color: var(--accent); }
.foot p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding: 32px 0 56px; }
  .lead { font-size: 17px; }
  .app { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
