/* Styles shared by the TapBattle privacy policy and terms pages. */
:root {
  --paper: #F4F1EA;
  --surface: #FFFFFF;
  --ink: #1B1F1C;
  --ink-soft: rgba(27, 31, 28, 0.66);
  --line: rgba(27, 31, 28, 0.12);
  --felt: #027333;
  --felt-ink: #FFFFFF;
  --accent: #D92B2B;
  --callout: #E3F1E8;
  --focus: #F23D3D;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101513;
    --surface: #1A211E;
    --ink: #ECEAE4;
    --ink-soft: rgba(236, 234, 228, 0.66);
    --line: rgba(236, 234, 228, 0.14);
    --felt: #2FB565;
    --felt-ink: #0B1A12;
    --accent: #FF7A6B;
    --callout: rgba(47, 181, 101, 0.14);
  }
}
:root[data-theme="dark"] {
  --paper: #101513;
  --surface: #1A211E;
  --ink: #ECEAE4;
  --ink-soft: rgba(236, 234, 228, 0.66);
  --line: rgba(236, 234, 228, 0.14);
  --felt: #2FB565;
  --felt-ink: #0B1A12;
  --accent: #FF7A6B;
  --callout: rgba(47, 181, 101, 0.14);
}

/* language switch */
:root[data-lang="es"] [data-l="en"],
:root[data-lang="en"] [data-l="es"] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 80px; }
@media (min-width: 600px) { .wrap { padding: 40px 24px 96px; } }

header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Lilita One", system-ui, sans-serif; font-size: 24px; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.langtoggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.langtoggle button {
  all: unset; cursor: pointer; font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.langtoggle button[aria-pressed="true"] { background: var(--felt); color: var(--felt-ink); }
.langtoggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1 {
  font-family: "Lilita One", system-ui, sans-serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 36px); line-height: 1.15; margin: 0 0 8px; text-wrap: balance;
}
.updated { font-size: 14px; color: var(--ink-soft); margin: 0 0 32px; }
h2 {
  font-family: "Lilita One", system-ui, sans-serif; font-weight: 400;
  font-size: 21px; margin: 40px 0 12px; text-wrap: balance;
}
h3 { font-size: 16px; font-weight: 800; margin: 24px 0 8px; }
p, li { font-size: 16px; line-height: 1.65; margin: 0 0 14px; max-width: 66ch; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 800; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }

.callout { background: var(--callout); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; max-width: none; }
.callout p + p { margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
th { font-weight: 800; background: var(--surface); }

footer {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 20px;
}
footer a { color: inherit; font-weight: 700; }

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