/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg:     #1a1a2e;
  --card:   #16213e;
  --border: #2a2a4a;
  --accent: #e94560;
  --green:  #4ade80;
  --text:   #cccccc;
  --muted:  #a0a0b0;
  --white:  #ffffff;
}

/* ── BASE ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

strong { color: var(--white); }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--white); }
.nav-back::before { content: '←'; }

/* ── PAGE HEADER ───────────────────────────────────────── */
.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}

.page-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-meta {
  font-size: 14px;
  color: var(--muted);
}

/* ── TABLE OF CONTENTS ─────────────────────────────────── */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.toc li { margin-bottom: 0; }

.toc a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* ── DOC BODY ──────────────────────────────────────────── */
.doc-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.doc-section {
  margin-bottom: 48px;
  scroll-margin-top: 72px;
}

.doc-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.doc-section p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.doc-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.doc-section ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.doc-section a { color: var(--accent); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }

/* ── CONTACT FORM ──────────────────────────────────────── */
.privacy-form {
  text-align: left;
  margin-top: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.required { color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #555570; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { min-height: 120px; resize: vertical; }

.privacy-form button[type="submit"] {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 4px;
}

.privacy-form button[type="submit"]:hover { opacity: 0.88; transform: translateY(-1px); }
.privacy-form button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.form-result.success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.form-result.error {
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.3);
  color: #ff8099;
}

/* ── CONTACT BLOCK ─────────────────────────────────────── */
.contact-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.contact-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-block p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-block a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-block a:hover { text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

footer p { font-size: 13px; color: var(--muted); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 600px) {
  .doc-body { padding: 32px 20px 56px; }
  .toc ol { grid-template-columns: 1fr; }
}
