:root {
  color-scheme: dark;
  --bg: #0f1217;
  --panel: #171c24;
  --panel-strong: #1d2430;
  --line: #2b3442;
  --text: #f5f7fb;
  --muted: #aeb7c5;
  --accent: #f2a93b;
  --accent-soft: rgba(242, 169, 59, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(242, 169, 59, 0.08), transparent 32rem),
    var(--bg);
  line-height: 1.7;
}
a { color: #ffc66f; text-underline-offset: 0.2em; }
a:hover { color: #ffdda8; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 10; padding: 0.7rem 1rem; background: var(--accent); color: #17120a; transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }
.legal-header, .legal-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 12px; background: #0b0e13; }
.brand span { display: grid; }
.brand small { color: var(--muted); font-size: 0.78rem; }
.back-link { padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.legal-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 3rem auto 5rem;
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.8fr);
  gap: 2rem;
  align-items: start;
}
.policy-summary { position: sticky; top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.eyebrow { color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0.25rem 0 1rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { color: var(--muted); }
dl { margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
dl div { display: grid; gap: 0.1rem; }
dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; }
.policy-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26); }
.policy-card section { padding: 1.65rem 2rem; border-bottom: 1px solid var(--line); }
.policy-card section:last-child { border-bottom: 0; }
.policy-card section:target { background: var(--accent-soft); }
.policy-card p:last-child { margin-bottom: 0; }
.legal-footer { min-height: 88px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.legal-footer nav { display: flex; gap: 1rem; }

@media (max-width: 780px) {
  .legal-header { align-items: flex-start; padding: 1rem 0; }
  .back-link { display: none; }
  .legal-layout { margin-top: 1.5rem; grid-template-columns: 1fr; }
  .policy-summary { position: static; }
  .policy-card section { padding: 1.35rem 1.2rem; }
  .legal-footer { padding: 1rem 0; align-items: flex-start; flex-direction: column; }
}
