:root {
  --bg: #f2f1ec;
  --card: #fffcf9;
  --text: #0c1222;
  --muted: #5a6270;
  --line: rgba(12,18,34,.09);
  --primary-bright: #4f46e5;
  --primary-dark: #1e1b4b;
  --primary-light: #eef2ff;
  --prime-gold: #b8952e;
  --radius: 18px;
  --font-display: 'Fraunces', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.container-wide {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255,252,249,.9);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e1b4b, #4338ca);
  color: #faf8f3;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(184,149,46,.4);
}

.brand span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

main {
  flex: 1;
  padding: 36px 0 48px;
}

.legal-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 28px rgba(12,18,34,.06);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.legal-page .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.35rem;
  margin-bottom: 14px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a {
  color: var(--primary-bright);
  font-weight: 600;
}

.contact-box {
  background: linear-gradient(135deg, #faf8f5, #f0eef8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.contact-box strong { color: var(--text); }

.footer-mini {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer-mini a {
  color: var(--primary-bright);
  font-weight: 600;
  text-decoration: none;
}

.footer-mini a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .container, .container-wide { width: calc(100% - 24px); }
  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
}
