:root {
  --bg: #08010b;
  --bg-alt: #0f0515;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --blue: #005AE0;
  --nav-h: 72px;
  --page: 64px;
  --max: 1000px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #08010b;
  --text-muted: rgba(8, 1, 11, 0.7);
  --border: rgba(8, 1, 11, 0.1);
  --surface: rgba(8, 1, 11, 0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

#nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; padding: 0 var(--page); z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; width: 100%; max-width: var(--max); margin: 0 auto; }
.nav-logo { height: 36px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin-left: auto; }
.nav-links a, .nav-links button { font-size: 14px; color: var(--text); background: none; border: none; cursor: pointer; }

.lang-wrapper { position: relative; }
#langBtn { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 0; }
#langDropdown { position: absolute; top: 100%; right: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; min-width: 120px; margin-top: 8px; display: none; flex-direction: column; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); overflow: hidden; z-index: 1000; }
#langDropdown.open { display: flex; }
.lang-option { padding: 12px 16px; cursor: pointer; transition: background .2s; border: none; background: none; color: var(--text); text-align: left; font-family: inherit; font-size: 14px; }
.lang-option:hover { background: var(--surface); }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; font-size: 18px; }
.theme-toggle:hover { background: var(--border); }

.content { max-width: var(--max); margin: 0 auto; padding: 140px var(--page) 80px; }
h1 { font-family: 'Roboto', sans-serif; font-size: 48px; font-weight: 400; line-height: 1.2; letter-spacing: -.48px; margin-bottom: 24px; margin-top: 80px; }
h1:first-child { margin-top: 0; }
h2 { font-family: 'Roboto', sans-serif; font-size: 32px; font-weight: 400; line-height: 1.3; letter-spacing: -.32px; margin-bottom: 16px; margin-top: 60px; }
h3 { font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -.2px; margin-bottom: 12px; margin-top: 20px; }
p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 16px; }
ul, ol { margin-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 8px; color: var(--text-muted); }
strong { color: var(--blue); font-weight: 600; }
em { font-style: italic; color: var(--text-muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.definition-list { margin-left: 20px; margin-bottom: 16px; }
.definition-item { margin-bottom: 12px; color: var(--text-muted); }

.contact-box, .payment-info { padding: 20px; margin: 20px 0; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--blue); }
.contact-box ul, .payment-info ul { margin-left: 20px; margin-bottom: 0; }
.payment-info { border-left-color: #FFA130; }
.payment-info strong { color: #FF7900; }

.policy-note { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; font-style: italic; }

footer { background: var(--bg-alt); padding: 80px var(--page) 40px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text); text-decoration: underline; }

@media (max-width: 768px) {
  :root { --page: 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .nav-links { display: none; }
}
