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

:root {
  --accent:        #3B82F6;
  --accent-dim:    rgba(59,130,246,0.10);
  --accent-border: rgba(59,130,246,0.22);
}
[data-theme="dark"] {
  --bg:     #0A0A0A;
  --bg2:    #111111;
  --bg3:    #1C1C1C;
  --bd:     rgba(255,255,255,0.07);
  --bd2:    rgba(255,255,255,0.13);
  --t1:     #FFFFFF;
  --t2:     #A1A1AA;
  --t3:     #52525B;
  --shadow: 0 24px 48px rgba(0,0,0,0.55);
}
[data-theme="light"] {
  --bg:     #FFFFFF;
  --bg2:    #F4F4F5;
  --bg3:    #E4E4E7;
  --bd:     rgba(0,0,0,0.07);
  --bd2:    rgba(0,0,0,0.13);
  --t1:     #09090B;
  --t2:     #52525B;
  --t3:     #A1A1AA;
  --shadow: 0 24px 48px rgba(0,0,0,0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background .25s, color .25s;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hdr {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -.5px;
}
/* Actual product logo image (replaces the placeholder .logo-mark on marketing pages) */
.logo-img {
  width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
  display: block;
}
.logo-text { font-size: 17px; font-weight: 700; color: var(--t1); letter-spacing: -.3px; }

/* ── Language dropdown (mirrors the region dropdown pattern) ── */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 9px;
  background: var(--bg2); border: 1px solid var(--bd2);
  font-size: 12.5px; font-weight: 600; color: var(--t1); cursor: pointer;
  font-family: inherit; transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: var(--bg3); }
.lang-btn .flag { font-size: 14px; line-height: 1; }
.lang-btn .chev { width: 11px; height: 11px; color: var(--t3); transition: transform .2s; }
.lang-wrap.open .lang-btn .chev { transform: rotate(180deg); }
.lang-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg); border: 1px solid var(--bd2); border-radius: 14px;
  padding: 6px; width: 240px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.30);
  z-index: 200;
  display: none;
}
.lang-wrap.open .lang-pop { display: block; }
.lang-pop-head {
  font-size: 10.5px; color: var(--t3); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 8px 10px 4px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 9px; cursor: pointer; text-decoration: none; color: var(--t1);
  transition: background .15s;
}
.lang-item:hover { background: var(--bg2); }
.lang-item.active { background: var(--accent-dim); }
.lang-item .flag { font-size: 18px; line-height: 1; }
.lang-item-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.lang-item-name { font-size: 14px; font-weight: 600; color: var(--t1); }
.lang-item-sub { font-size: 11.5px; color: var(--t3); }
.lang-item .tick {
  width: 14px; height: 14px; color: var(--accent);
  opacity: 0; transition: opacity .15s;
}
.lang-item.active .tick { opacity: 1; }

nav { display: flex; align-items: center; gap: 2px; flex: 1; }
nav a {
  padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--t2);
  text-decoration: none; border-radius: 7px; transition: color .15s, background .15s;
}
nav a:hover { color: var(--t1); background: var(--bd); }
nav a.active { color: var(--t1); }

.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--bd2); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: background .2s, color .2s; flex-shrink: 0;
}
.theme-btn:hover { background: var(--bg3); color: var(--t1); }
.theme-btn svg { width: 16px; height: 16px; pointer-events: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s;
  border: none; font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #2563EB; }
.btn-ghost { background: transparent; color: var(--t2); border: 1px solid var(--bd2); }
.btn-ghost:hover { background: var(--bg3); color: var(--t1); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-border); border-radius: 100px;
  padding: 4px 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
}

/* ── Section shell ── */
.section { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section-gap { padding-top: 88px; padding-bottom: 88px; }

.section-label {
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  letter-spacing: .7px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px;
}
.section-sub { font-size: 15px; color: var(--t2); line-height: 1.65; max-width: 500px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--bd); }
.ftr {
  max-width: 1100px; margin: 0 auto; padding: 30px 28px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.ftr-left { display: flex; align-items: center; gap: 9px; }
.ftr-mark {
  width: 22px; height: 22px; background: var(--accent); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff;
}
.ftr-copy { font-size: 12.5px; color: var(--t3); }
.ftr-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-links a { font-size: 12.5px; color: var(--t3); text-decoration: none; transition: color .18s; }
.ftr-links a:hover { color: var(--t2); }

/* ── Legal page (shared) ── */
.legal-hero { text-align: center; padding: 56px 28px 40px; max-width: 1100px; margin: 0 auto; }
.legal-hero h1 { font-size: clamp(26px,4vw,36px); font-weight: 800; letter-spacing: -1px; margin: 16px 0 10px; }
.legal-hero p { font-size: 14.5px; color: var(--t2); max-width: 420px; margin: 0 auto; line-height: 1.6; }

.legal-content { max-width: 800px; margin: 0 auto; padding: 0 28px 80px; }
.legal-card {
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 16px; padding: 44px;
}
.legal-card-title { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 4px; }
.legal-date { font-size: 12.5px; color: var(--t3); margin-bottom: 34px; }
.legal-card h3 { font-size: 13.5px; font-weight: 600; color: var(--t1); margin: 28px 0 8px; }
.legal-card p { font-size: 14px; color: var(--t2); line-height: 1.75; margin-bottom: 10px; }
.legal-card ul { margin: 6px 0 12px 18px; list-style: disc; }
.legal-card li { font-size: 14px; color: var(--t2); line-height: 1.75; margin-bottom: 5px; }
.legal-card a { color: var(--accent); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-rule { border: none; border-top: 1px solid var(--bd); margin: 30px 0; }
.legal-highlight {
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 10px; padding: 14px 18px; margin: 12px 0;
}
.legal-highlight p { color: var(--t1); margin: 0; font-size: 13.5px; line-height: 1.6; }

@media (max-width: 768px) {
  nav { display: none; }
  .hdr { gap: 16px; }
  .section-gap { padding-top: 60px; padding-bottom: 60px; }
  .legal-card { padding: 24px 20px; }
}
@media (max-width: 500px) {
  .ftr { flex-direction: column; align-items: flex-start; }
}
