/* ============================================================
   EVER AFTER GAMES, legal pages (privacy / terms / cookies)
   Static, self-contained, but dressed in the same two worlds:
   dark = cyberpunk neon night, light = fairytale dawn.
   ============================================================ */

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

:root { --font-ui: "Sora", system-ui, sans-serif; }

[data-theme="dark"] {
  color-scheme: dark;
  --font-display: "Chakra Petch", sans-serif;
  --display-case: uppercase;
  --bg: #08060f;
  --bg-2: #0e0a1e;
  --ink: #efeaff;
  --muted: #9d94c6;
  --line: rgba(155, 135, 255, 0.16);
  --line-strong: rgba(155, 135, 255, 0.34);
  --surface: rgba(155, 135, 255, 0.06);
  --acc: #00ff85;
  --acc2: #45e3ff;
}

[data-theme="light"] {
  color-scheme: light;
  --font-display: "Cormorant Garamond", serif;
  --display-case: none;
  --bg: #f9f1e5;
  --bg-2: #f3e6d8;
  --ink: #43304a;
  --muted: #8b7191;
  --line: rgba(110, 70, 110, 0.16);
  --line-strong: rgba(110, 70, 110, 0.32);
  --surface: rgba(255, 255, 255, 0.55);
  --acc: #a84390;
  --acc2: #b8862e;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; }

header.legal-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.brand {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-weight: 700; font-size: 17px; letter-spacing: 0.06em;
}
.brand .star { color: var(--acc); margin-right: 8px; }
nav.legal-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
nav.legal-nav a { color: var(--muted); text-decoration: none; }
nav.legal-nav a:hover, nav.legal-nav a.here { color: var(--acc); }

h1 {
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.updated { color: var(--muted); font-size: 13px; margin: 0 0 36px; }

h2 {
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: 21px;
  margin: 44px 0 12px;
  padding-top: 10px;
}
h2::before { content: "\2726\00a0\00a0"; color: var(--acc); font-size: 14px; }
h3 { font-size: 15.5px; margin: 26px 0 8px; }

p, li { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--acc); }
ul { padding-left: 22px; }
li { margin: 6px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

.tbl-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
th { color: var(--ink); font-weight: 600; white-space: nowrap; }

button.linkish {
  font: inherit; color: var(--acc); background: none; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 10px 16px; cursor: pointer;
}
button.linkish:hover { border-color: var(--acc); }

footer.legal-foot {
  margin-top: 70px; padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; line-height: 1.7;
}
footer.legal-foot a { color: inherit; }
