/* Privacy, Terms and Support pages. Loaded after css/app.css, which brings the
   nav, the footer, the type and the accent. These pages stay plain: a calm
   reading column, no 3D. */

body.legal { position: relative; }
body.legal::before { content: ''; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 0%, var(--accent-glow), rgba(6, 7, 13, 0) 72%); }

.page { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) clamp(72px, 12vh, 120px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 36px; font-size: 14px; color: var(--fog); text-decoration: none; transition: color 0.25s var(--ease); }
.back-link:hover { color: var(--paper); }
.page-title { font-weight: 700; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 12px; }
.page-meta { font-size: 14px; color: var(--fog); margin-bottom: 48px; }
.page-meta + .page-intro { margin-top: -28px; }
.page-intro { font-size: 17px; color: rgba(236, 238, 248, 0.8); line-height: 1.7; margin-bottom: 44px; }

/* sections of a policy */
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-body { font-size: 16px; line-height: 1.8; color: rgba(236, 238, 248, 0.78); white-space: pre-line; }
.section-body a, .faq-a a, .contact-box a:not(.btn-primary) { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section-body a:hover, .faq-a a:hover { text-decoration-color: var(--accent); }

/* support: questions as glass cards, then a way to write to us */
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fog); }
.section-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 0 4px var(--accent-glow); }
.faq-item { margin-bottom: 12px; padding: 24px 26px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(14, 16, 28, 0.55); background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: border-color 0.3s var(--ease); }
.faq-item:hover { border-color: var(--accent-soft); }
.faq-q { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.faq-a { font-size: 15px; line-height: 1.7; color: var(--fog); }
.contact-box { position: relative; overflow: hidden; margin-top: 56px; padding: clamp(32px, 6vw, 48px); text-align: center; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12); background-color: rgba(14, 16, 28, 0.55);
  background-image: radial-gradient(70% 90% at 50% 0%, var(--accent-glow), rgba(6, 7, 13, 0) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.contact-box h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.contact-box p { font-size: 16px; color: rgba(236, 238, 248, 0.78); line-height: 1.6; margin-bottom: 26px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; background: var(--paper); color: var(--obsidian); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), 0 12px 34px color-mix(in srgb, var(--accent) 35%, transparent); }

/* language picker on translated pages */
.page-lang { margin: -24px 0 44px; }
.lang-picker { position: relative; display: inline-block; }
.lang-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 var(--text); color: var(--paper); background: rgba(14, 16, 28, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); transition: border-color 0.2s; }
.lang-trigger:hover { border-color: var(--accent-soft); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-chevron { color: var(--fog); transition: transform 0.18s; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 200px; max-height: 320px; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: #0f1220; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--fog); cursor: pointer; transition: background 0.14s, color 0.14s; }
.lang-menu li:hover { color: var(--paper); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lang-menu li[aria-selected="true"] { color: var(--paper); }
.lang-menu li[aria-selected="true"]::after { content: '✓'; margin-left: auto; color: var(--accent); font-weight: 700; }
.legal-disclaimer { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--fog); border-left: 2px solid var(--accent-soft); padding-left: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 899px) {
  .page { padding-top: calc(var(--nav-h) + 36px); }
  .faq-item { padding: 20px; }
}
