/* Legal pages (privacy): readable long text in the site's night palette. */
:root {
  --night: #140f26;
  --plum: #2b1f5c;
  --cream: #fff4e3;
  --muted: #c9c2e6;
  --amber: #ffb347;
  --line: rgba(255, 255, 255, 0.14);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  background: linear-gradient(180deg, #110c22 0%, var(--night) 40%, #1c1438 100%) fixed;
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { border-radius: 9px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }
.lang:hover { border-color: var(--amber); }

.doc { padding-top: 12px; padding-bottom: 32px; }
h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 18px 0 4px; }
h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 8px; scroll-margin-top: 16px; }
.meta { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
p, li, dd { color: #efe8f7; }
ul { padding-left: 22px; margin: 8px 0; }
li { margin: 6px 0; }

.summary { background: var(--plum); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 12px; }
.summary h2 { margin-top: 14px; font-size: 18px; }

dl { margin: 8px 0; }
dt { font-weight: 800; margin-top: 16px; }
dd { margin: 4px 0 0; }

footer { padding-top: 20px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
footer a { color: var(--cream); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .summary { padding: 2px 16px 10px; }
}
