/* Tokens de apps/mobile/src/ui/theme/tokens.ts e escala do guia de UI (ADR 0011). */
:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --surface: #141815;
  --elevated: #1c211e;
  --divider: #1e2321;
  --control: #2a312c;
  --text: #f2f5f3;
  --text-2: #9aa6a0;
  --lime: #c9f24f;
  --coral: #ff8b72;
  --on-accent: #0b0d0c;
  --lime-tint: rgba(201, 242, 79, 0.12);

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-xxl: 24px;
  --s-xxxl: 32px;
  --section-gap: 48px;

  --r-card: 20px;
  --r-control: 14px;
  --r-pill: 999px;
  --control-h: 52px;

  --f-ui: 'Instrument Sans', system-ui, sans-serif;
  --f-num: 'Space Grotesk', var(--f-ui);
  --t-meta: 13px;
  --t-body: 15px;
  --t-h3: 16px;
  --t-h2: 22px;
  --t-h1: 34px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-body) / 1.45 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-inline: var(--s-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-lg) var(--s-md);
}

.logo {
  display: flex;
  padding-block: var(--s-sm);
}

.logo img {
  display: block;
}

.nav-link {
  padding: var(--s-md) var(--s-xs);
  font-weight: 600;
  text-decoration: none;
}

.card {
  padding: var(--s-xl);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
}

h1 {
  font: 700 var(--t-h1) / 1.05 var(--f-num);
  letter-spacing: -1.2px;
  text-wrap: balance;
}

h2 {
  font: 700 var(--t-h2) / 1.2 var(--f-num);
  letter-spacing: -0.5px;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 600;
}

.lead {
  font-size: 16px;
}

.lead,
.rows p,
.meta,
.consent,
.footer {
  color: var(--text-2);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding-inline: var(--s-xl);
  background: var(--lime);
  border: 0;
  border-radius: var(--r-control);
  color: var(--on-accent);
  font: 600 16px / 1 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button-secondary {
  background: var(--elevated);
  border: 1px solid var(--control);
  color: var(--text);
}

.button-small {
  height: 44px;
  font-size: var(--t-body);
}

.meta {
  font-size: var(--t-meta);
  text-align: center;
}

.section {
  margin-top: var(--section-gap);
}

.section > h2 {
  margin-bottom: var(--s-lg);
}

.rows {
  list-style: none;
}

.rows > * + * {
  margin-top: var(--s-lg);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--divider);
}

.rows p {
  margin-top: var(--s-xs);
}

summary {
  font-weight: 600;
  cursor: pointer;
}

.closing {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--section-gap);
  padding-block: var(--s-xxl) var(--s-xxxl);
  border-top: 1px solid var(--divider);
  font-size: var(--t-meta);
}

.cookie {
  position: fixed;
  inset: auto var(--s-sm) var(--s-sm);
  max-width: 456px;
  margin-inline: auto;
  padding: var(--s-md);
  background: var(--elevated);
  border: 1px solid var(--control);
  border-radius: var(--r-control);
  font-size: var(--t-meta);
  color: var(--text-2);
}

.cookie-actions {
  display: flex;
  gap: var(--s-sm);
  margin-top: var(--s-sm);
}

.cookie-actions .button {
  flex: 1;
}

[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  :root {
    --t-h1: 44px;
    --t-h2: 26px;
  }

  .wrap {
    max-width: 560px;
  }
}

.legal {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  color: var(--text-2);
}

.legal h1 {
  color: var(--text);
}

.legal h2 {
  margin-top: var(--s-xxl);
  color: var(--text);
}

.legal ul {
  padding-left: var(--s-xl);
}
