@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg-0: #0e0e10;
  --bg-1: #141416;
  --bg-2: #1a1a1d;
  --bg-3: #232327;
  --bg-4: #2c2c30;
  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --text-1: #f4f4f5;
  --text-2: #b8b8be;
  --text-3: #76767e;
  --text-4: #56565c;
  --red-1: #ff3a3a;
  --red-2: #e02424;
  --red-3: #b91818;
  --green: #2ecc71;
  --gold: #d6a93a;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --font: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Russo One', sans-serif;
  --max-w: 1100px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-0) 85%, transparent);
  border-bottom: 1px solid var(--line-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-1);
  flex-shrink: 0;
}

.header-logo img { width: 32px; height: 32px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header-nav a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 150ms ease, background 150ms ease;
  white-space: nowrap;
}

.header-nav a:hover { color: var(--text-1); background: var(--line-1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 80ms ease, background 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red-2);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(224,36,36,0.55);
}
.btn-primary:hover { background: var(--red-1); box-shadow: 0 8px 24px -4px rgba(255,58,58,0.5); }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text-1);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { background: var(--bg-4); }

.btn-red {
  background: var(--red-2);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(224,36,36,0.5);
}
.btn-red:hover { background: var(--red-1); }

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-3); color: var(--text-1); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-1);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  min-width: 20px;
  background: rgba(224,36,36,0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.65;
}

.policy-link {
  font-size: 13px;
  color: var(--text-3);
  transition: color 150ms ease;
}
.policy-link:hover { color: var(--red-1); }

.site-footer {
  border-top: 1px solid var(--line-1);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-2);
}

.footer-links { display: flex; gap: 20px; flex: 1; }

.footer-links a {
  font-size: 13px;
  color: var(--text-4);
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--text-2); }

.footer-copy { font-size: 12px; color: var(--text-4); font-weight: 500; }

.page-main { padding-top: var(--header-h); }

.doc-page { padding: 60px 0 80px; }

.doc-header { margin-bottom: 48px; }

.doc-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 10px;
}

.doc-header .doc-meta { font-size: 13px; color: var(--text-4); font-weight: 500; }

.doc-body { display: flex; flex-direction: column; gap: 0; }

.doc-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-1);
}

.doc-section:last-child { border-bottom: none; }

.doc-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.doc-section p {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  font-weight: 500;
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.faq-item:hover { border-color: var(--line-2); }
.faq-item:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.faq-item:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.faq-item + .faq-item { border-top: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  text-align: left;
  transition: background 150ms ease;
}

.faq-q:hover { background: rgba(255,255,255,0.02); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-4);
  transition: transform 250ms ease, color 150ms ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--red-1); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 16px 20px 20px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  font-weight: 500;
  border-top: 1px solid var(--line-1);
}

.contact-box {
  margin-top: 48px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,36,36,0.4), transparent);
}

.contact-box h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-1);
  margin-bottom: 8px;
}

.contact-box p {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 32px;
  transition: color 150ms ease;
  cursor: pointer;
}
.back-link:hover { color: var(--text-2); }

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .doc-page { padding: 40px 0 60px; }
  .contact-box { padding: 28px 20px; }

  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line-1);
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
    transform: translateY(-110%);
    transition: transform 250ms cubic-bezier(0.22,1,0.36,1);
  }

  .mobile-nav.open { transform: translateY(0); }

  .mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    transition: color 150ms ease, background 150ms ease;
  }

  .mobile-nav a:hover { color: var(--text-1); background: var(--line-1); }
}

@media (max-width: 480px) {
  .btn { font-size: 13px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
