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

/* ── Modern Variables & Theming ──────────────────────────────────── */
:root {
  /* Light Theme Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #6366f1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: #e0e7ff;
  --accent: #8b5cf6;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #d1fae5;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-soft: rgba(99, 102, 241, 0.2);
    --accent: #a78bfa;
    --green: #34d399;
    --green-dark: #10b981;
    --green-soft: rgba(16, 185, 129, 0.2);
    --red: #f87171;
    --red-soft: rgba(239, 68, 68, 0.2);
    --amber: #fbbf24;
    --amber-soft: rgba(245, 158, 11, 0.2);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(129, 140, 248, 0.3);
  }
}

/* ── Base Styles ────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Navbar (Glassmorphism) ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { 
  display: flex; align-items: center; gap: 12px; 
  font-weight: 800; font-size: 1.25rem; 
  color: var(--text-main); letter-spacing: -0.03em; 
}
.brand .logo { 
  width: 40px; height: 40px; border-radius: 12px; 
  box-shadow: var(--shadow-sm); 
  transition: transform var(--transition-normal);
}
.brand:hover .logo { transform: rotate(-10deg) scale(1.05); }
.brand b {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-main); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-normal);
  text-decoration: none !important;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  box-shadow: var(--shadow-md);
}
.btn.green { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn.danger { background: var(--bg-secondary); color: var(--red) !important; border: 1px solid var(--red-soft); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.fb { background: #1877f2; box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); }

/* ── Hero Section (Animated Gradients) ───────────────────────── */
.hero { 
  position: relative; overflow: hidden; padding: 120px 0; 
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  animation: pulseBg 10s infinite alternate ease-in-out;
}
@keyframes pulseBg {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
@media (max-width: 968px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .cta { justify-content: center; } }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
  margin-bottom: 24px; border: 1px solid rgba(99, 102, 241, 0.2);
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--green));
  -webkit-background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero p.lead { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; }
.badge-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.badge-row span { display: flex; align-items: center; gap: 8px; }
.badge-row span::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ── Phone Mockup ────────────────────────────────────────────── */
.phone {
  width: min(100%, 340px); margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 36px; border: 8px solid var(--border-color);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(2deg) translateY(0);
  transition: transform var(--transition-normal);
}
.phone:hover { transform: rotate(0deg) translateY(-10px); }
.phone-top {
  background: linear-gradient(135deg, var(--green-dark), #0d7a52);
  padding: 16px; display: flex; align-items: center; gap: 12px; color: #fff;
}
.phone-top img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.phone-top .nm { font-weight: 700; font-size: 0.95rem; }
.phone-top .st { font-size: 0.75rem; opacity: 0.8; }
.chat {
  padding: 20px 16px; background: rgba(0,0,0,0.02);
  display: flex; flex-direction: column; gap: 12px; min-height: 300px;
}
.bubble {
  max-width: 85%; padding: 10px 14px; font-size: 0.9rem; border-radius: 16px;
  box-shadow: var(--shadow-sm); position: relative; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.bubble:nth-child(1) { animation-delay: 0.1s; }
.bubble:nth-child(2) { animation-delay: 0.6s; }
.bubble:nth-child(3) { animation-delay: 1.1s; }
.bubble:nth-child(4) { animation-delay: 2s; }
.bubble.in { background: var(--bg-secondary); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border-color); }
.bubble.out { background: var(--green-soft); color: var(--green-dark); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.tpl { border-left: 3px solid var(--green); }
.bubble .tick { display: block; text-align: right; font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }

/* ── Strip ───────────────────────────────────────────────────── */
.strip { background: var(--bg-secondary); border-block: 1px solid var(--border-color); padding: 40px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.strip .num2 { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.strip .lbl { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-top: 4px; }

/* ── Cards & Features ────────────────────────────────────────── */
.section h2 { font-size: 2.5rem; text-align: center; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.section .sub { text-align: center; color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 56px; }
.kicker { display: block; text-align: center; color: var(--primary); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }

.card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.card::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, var(--primary-soft), transparent 60%);
  opacity: 0; transition: opacity var(--transition-normal); pointer-events: none;
}
.card:hover::after { opacity: 0.5; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; background: var(--primary-soft); color: var(--primary);
  margin-bottom: 24px; border: 1px solid rgba(99, 102, 241, 0.2);
}
.card .icon.g { background: var(--green-soft); border-color: rgba(16, 185, 129, 0.2); }
.card .icon.b { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); }
.card .icon.a { background: var(--amber-soft); border-color: rgba(245, 158, 11, 0.2); }

/* ── Steps ───────────────────────────────────────────────────── */
.step { display: flex; gap: 24px; }
.step .num {
  flex: 0 0 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-weight: 800; font-size: 1.2rem; box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* ── Pricing ─────────────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; margin: 16px 0 8px; color: var(--text-main); }
.price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.plan ul { list-style: none; margin: 24px 0 32px; flex: 1; }
.plan li { padding: 8px 0; color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 12px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; background: var(--green-soft); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; }
.plan.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05); z-index: 10;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.plan.featured:hover { transform: scale(1.05) translateY(-4px); }
@media (max-width: 968px) { .plan.featured { transform: scale(1); } .plan.featured:hover { transform: translateY(-4px); } }
.plan .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 0.75rem; font-weight: 800; padding: 6px 16px; border-radius: var(--radius-pill);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band { padding: 0 0 100px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-lg);
  padding: 80px 32px; color: #fff;
  background: linear-gradient(135deg, var(--primary-hover), var(--accent));
  box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent 60%);
}
.cta-card h2 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-card p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-card .btn { background: #fff; color: var(--primary) !important; position: relative; z-index: 1; }
.cta-card .btn:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 64px 0 40px; color: var(--text-muted); font-size: 0.9rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--text-main); margin-bottom: 20px; font-weight: 700; font-size: 1rem; }
footer a { display: block; color: var(--text-muted); padding: 6px 0; transition: color var(--transition-fast); }
footer a:hover { color: var(--primary); }
footer .fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-color); font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ── Auth Pages (Forms) ──────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(circle at top left, var(--primary-soft), transparent 40%),
              radial-gradient(circle at bottom right, var(--green-soft), transparent 40%);
}
.auth-card {
  width: 100%; max-width: 440px; padding: 40px; border-radius: var(--radius-lg);
  background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-card .sub2 { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }

/* Form Fields with :has() logic for modern states */
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; transition: color var(--transition-fast); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md); font-size: 1rem; font-family: inherit;
  background: var(--bg-primary); color: var(--text-main); border: 2px solid var(--border-color);
  outline: none; transition: all var(--transition-normal);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--border-focus); background: var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
/* Agentic form validation styles using :has */
.field:has(input:user-invalid) label { color: var(--red); }
.field:has(input:user-invalid) input { border-color: var(--red); background: var(--red-soft); }
.field:has(input:focus) label { color: var(--primary); }

.form-error { color: var(--red); font-size: 0.9rem; font-weight: 500; min-height: 1.2em; margin: 12px 0; }
.form-ok { color: var(--green); font-size: 0.9rem; font-weight: 500; min-height: 1.2em; margin: 12px 0; }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg-primary); }
.sidebar {
  background: var(--bg-secondary); border-right: 1px solid var(--border-color);
  padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { margin: 8px 12px 40px; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar nav a {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius-md);
  color: var(--text-muted); font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition-fast);
}
.sidebar nav a:hover { background: var(--bg-primary); color: var(--text-main); transform: translateX(4px); }
.sidebar nav a.active {
  background: var(--primary-soft); color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}
.main { padding: 40px 48px; max-width: 1200px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.topbar h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.userchip {
  display: flex; gap: 16px; align-items: center; color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.panel { display: none; animation: fadeIn var(--transition-normal); }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* View Transitions for Panels */
::view-transition-old(panel) { animation: fade-out 0.2s ease forwards; }
::view-transition-new(panel) { animation: fade-in 0.3s ease 0.1s forwards; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .v { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-main); }
.stat .l { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-top: 4px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.pill.green { background: var(--green-soft); color: var(--green-dark); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--primary-soft); color: var(--primary); }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.tbl th {
  text-align: left; color: var(--text-muted); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 16px;
  border-bottom: 2px solid var(--border-color);
}
.tbl td { padding: 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-main); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr { transition: background-color var(--transition-fast); }
.tbl tr:hover td { background: var(--bg-primary); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--accent); }
.copybox {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 12px 16px; margin: 8px 0 24px;
}
.copybox code { flex: 1; word-break: break-all; font-size: 0.9rem; color: var(--primary); font-family: monospace; }
.row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.row .field { flex: 1; min-width: 200px; margin-bottom: 0; }
.muted { color: var(--text-muted); }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 100; height: auto;
    display: flex; overflow-x: auto; align-items: center; gap: 8px; padding: 16px;
    border-right: none; border-bottom: 1px solid var(--border-color);
  }
  .sidebar .brand { margin: 0 24px 0 8px; }
  .sidebar nav { flex-direction: row; }
  .sidebar nav a { white-space: nowrap; }
  .main { padding: 24px; }
}

/* Legal Pages */
.legal { max-width: 800px; margin: 0 auto; padding: 80px 24px; background: var(--bg-secondary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-top: 40px; margin-bottom: 40px;}
.legal h1 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 8px; font-weight: 800; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 48px; font-weight: 500; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 16px; letter-spacing: -0.02em; font-weight: 700; color: var(--text-main); }
.legal p, .legal li { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 16px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 24px; }
.legal .notice {
  background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--amber);
  padding: 20px 24px; border-radius: var(--radius-md); font-size: 1rem; margin-bottom: 32px; font-weight: 500;
}
