@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #240d34;
  --bg-deep: #190a27;
  --surface: #2b103d;
  --fg: #fff9ff;
  --muted: #e0d2ea;
  --border: #624375;
  --accent: #19ebca;
  --accent-ink: #092923;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], [data-lang="es"] [data-copy="en"], [data-lang="en"] [data-copy="es"] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 "DM Sans", "Segoe UI", system-ui, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #72ffe6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-header { background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.header-inner > a { display: inline-flex; align-items: center; min-height: 44px; }
.header-inner img { display: block; width: 128px; height: auto; }

.lang-switch { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.lang-switch button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

main { padding-block: clamp(24px, 5vw, 56px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; }
.legal-card {
  padding: clamp(20px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.legal-card h1 { margin: 0; font-size: clamp(36px, 7vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.legal-card h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 24px); line-height: 1.25; }
.legal-card p { max-width: 66ch; margin: 0; color: var(--muted); }
.legal-card p + p { margin-top: 10px; }
.legal-card .intro { margin-top: 16px; font-size: clamp(17px, 2vw, 19px); }
.legal-card section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-card code { color: var(--fg); font-size: .9em; }
.legal-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; }
