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

:root {
  /* PlayVPN app palette — playvpn_theme.dart */
  --bg: #0a0f1a;
  --bg-elevated: #121a2b;
  --surface: #121a2b;
  --card: #162033;
  --card-hover: #1a2840;
  --border: rgba(30, 58, 95, 0.6);
  --border-glow: rgba(6, 182, 212, 0.5);
  --cyan: #22d3ee;
  --primary: #06b6d4;
  --accent: #0ea5e9;
  --gradient: linear-gradient(135deg, #22d3ee, #06b6d4, #0ea5e9);
  --gradient-diag: linear-gradient(135deg, #22d3ee, #06b6d4, #0ea5e9);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --glow-cyan: 0 0 40px rgba(0, 210, 255, 0.35);
  --glow-btn: 0 8px 32px rgba(0, 210, 255, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(14, 165, 233, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Logo — matches PlayVpnBrandTitle in app */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.logo-icon--lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-play {
  color: var(--text);
}

.logo-vpn {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11, 14, 20, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile a:hover {
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow-btn);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0, 210, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Section common */
section {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Footer */
.site-footer-full {
  position: relative;
  z-index: 1;
  background: #080a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-about p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  color: var(--cyan);
  border-color: var(--border-glow);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 0.8rem;
}

/* Legal pages shell */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}

.shell main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.shell .brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.shell .brand-row h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.shell .brand-row .tagline {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.shell article h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.shell .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.shell article h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--cyan);
}

.shell article p,
.shell article li {
  color: #cbd5e1;
}

.shell article ul,
.shell article ol {
  padding-left: 1.25rem;
  margin: 8px 0 16px;
}

.shell .faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.shell .faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.shell .faq-item p {
  margin: 0;
  font-size: 0.92rem;
}
