@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Lato:wght@300;400;700&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', system-ui, sans-serif; color: #1C0A1A; background: #FFF9F5; line-height: 1.7; font-size: 16px; }
a { color: #F72585; text-decoration: none; }
a:hover { text-decoration: underline; }

.legal-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,249,245,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(247,37,133,0.1);
  padding: 16px 32px; display: flex; align-items: center; justify-content: space-between;
}
.legal-nav-logo { display: flex; align-items: center; gap: 10px; }
.legal-nav-logo img { height: 36px; }
.legal-nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 700; color: #F72585;
  padding: 8px 18px; border: 1.5px solid rgba(247,37,133,0.3);
  border-radius: 50px; transition: background 0.2s, color 0.2s;
}
.legal-nav-back:hover { background: #F72585; color: #fff; text-decoration: none; }

.legal-hero {
  background: linear-gradient(135deg, rgba(247,37,133,0.08) 0%, rgba(249,199,79,0.08) 100%);
  padding: 64px 32px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(247,37,133,0.08);
}
.legal-hero-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg,#F72585,#F8961E,#F9C74F);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.legal-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3rem); color: #1C0A1A; margin-bottom: 10px; }
.legal-hero p { color: #6B4060; font-size: 0.9rem; }

.legal-container { max-width: 860px; margin: 0 auto; padding: 56px 32px 80px; }
.legal-toc {
  background: #fff; border: 1px solid rgba(247,37,133,0.12);
  border-radius: 16px; padding: 28px 32px; margin-bottom: 48px;
}
.legal-toc h2 { font-size: 1rem; font-weight: 800; color: #1C0A1A; margin-bottom: 16px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 8px; font-size: 0.9rem; }
.legal-toc a { color: #F72585; font-weight: 600; }

section.legal-section { margin-bottom: 48px; scroll-margin-top: 80px; }
section.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: #1C0A1A;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg,#F72585,#F9C74F) 1;
}
section.legal-section h3 { font-size: 1.05rem; color: #1C0A1A; margin: 20px 0 10px; font-weight: 700; }
section.legal-section p { color: #3d2b1f; margin-bottom: 14px; font-size: 0.95rem; }
section.legal-section ul, section.legal-section ol { padding-left: 22px; margin-bottom: 14px; }
section.legal-section li { color: #3d2b1f; font-size: 0.95rem; margin-bottom: 8px; }
section.legal-section strong { color: #1C0A1A; }

.legal-alert {
  background: linear-gradient(135deg, rgba(247,37,133,0.06) 0%, rgba(249,199,79,0.06) 100%);
  border-left: 4px solid #F72585; border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 20px 0;
}
.legal-alert p { margin: 0; font-size: 0.9rem; color: #1C0A1A; }

.legal-footer {
  background: #1C0A1A; color: rgba(255,255,255,0.5);
  text-align: center; padding: 24px; font-size: 0.8rem;
}
.legal-footer a { color: rgba(255,255,255,0.6); }

[data-theme="dark"] body { background: #120810; color: #F5E6EF; }
[data-theme="dark"] .legal-nav { background: rgba(18,8,16,0.95); border-bottom-color: rgba(247,37,133,0.15); }
[data-theme="dark"] .legal-hero { background: linear-gradient(135deg, rgba(247,37,133,0.1) 0%, rgba(249,199,79,0.06) 100%); }
[data-theme="dark"] .legal-hero h1 { color: #F5E6EF; }
[data-theme="dark"] .legal-toc { background: #1E1020; border-color: rgba(247,37,133,0.15); }
[data-theme="dark"] .legal-toc h2 { color: #F5E6EF; }
[data-theme="dark"] section.legal-section h2 { color: #F5E6EF; }
[data-theme="dark"] section.legal-section h3 { color: #F5E6EF; }
[data-theme="dark"] section.legal-section p, [data-theme="dark"] section.legal-section li { color: #C49AB8; }
[data-theme="dark"] section.legal-section strong { color: #F5E6EF; }
