/* Shared stylesheet for Adelyana legal/policy pages.
   Same dark Timerox/Adelyana brand palette, tuned for long-form
   readability: bigger text, generous line-height, narrow column. */

:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --accent: #E4FF3A;
  --text: #E8E8E2;
  --text-mute: #A8A8A8;
  --text-dim: #5a5a5a;
  --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  font-size: 16px;
}

/* subtle engineered grid texture, matches landing page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

/* ---------- TOP BAR (back link + language switcher) ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color .15s ease;
}
.topbar a:hover { color: var(--accent); }
.topbar .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar .home svg { display: block; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher .sep { color: var(--text-dim); }
.lang-switcher .current {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- HEADINGS ---------- */
h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ---------- META BLOCK (date, contact at top) ---------- */
.meta {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.8;
}
.meta strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- BODY ELEMENTS ---------- */
p {
  margin-bottom: 18px;
  color: var(--text);
}
strong { color: var(--text); font-weight: 700; }

ul, ol {
  margin: 14px 0 22px 0;
  padding-left: 24px;
}
li {
  margin-bottom: 10px;
  color: var(--text);
}
li::marker { color: var(--text-dim); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 255, 58, 0.25);
  transition: border-color .15s ease;
}
a:hover { border-bottom-color: var(--accent); }

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.callout {
  padding: 18px 22px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin: 24px 0 28px;
  border-radius: 2px;
  color: var(--text-mute);
  font-size: 15px;
}
.callout strong { color: var(--text); }

/* ---------- FOOTER ---------- */
.policy-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.policy-footer a {
  color: var(--text-mute);
  border-bottom: none;
}
.policy-footer a:hover { color: var(--accent); }

.disclaimer {
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 540px) {
  main { padding: 36px 20px 64px; }
  .topbar { margin-bottom: 36px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; margin-top: 36px; }
}
