/* TeezBar Legal Pages — unique premium style */
/* Dark navy + gold accents, glassmorphism cards */

:root {
  --l-gold: #FFD700;
  --l-gold-dim: rgba(255, 215, 0, 0.15);
  --l-gold-glow: rgba(255, 215, 0, 0.08);
  --l-navy: #0D1B2A;
  --l-navy-light: #1B2838;
  --l-navy-mid: #243447;
  --l-slate: #415A77;
  --l-steel: #778DA9;
  --l-cloud: #E0E1DD;
  --l-white: #FAFBFC;
  --l-bg: #F4F5F7;
  --l-text: #2C3E50;
  --l-text-light: #5D6D7E;
  --l-radius: 16px;
  --l-radius-sm: 10px;
  --l-shadow: 0 1px 3px rgba(13,27,42,0.06), 0 6px 16px rgba(13,27,42,0.04);
  --l-shadow-lg: 0 4px 12px rgba(13,27,42,0.08), 0 16px 40px rgba(13,27,42,0.06);
  --l-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,*::before,*::after { margin:0;padding:0;box-sizing:border-box; }
html { scroll-behavior:smooth; }

body.legal-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--l-text);
  background: var(--l-bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--l-transition); }

/* ─── Top bar ─── */
.legal-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,215,0,0.12);
}

.legal-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.legal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.legal-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-nav a {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--l-steel);
  border-radius: 8px;
  transition: var(--l-transition);
}

.legal-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.legal-nav a.active {
  color: var(--l-gold);
  background: rgba(255,215,0,0.1);
}

/* ─── Hero banner ─── */
.legal-hero {
  margin-top: 64px;
  padding: 72px 28px 56px;
  background: linear-gradient(135deg, var(--l-navy) 0%, var(--l-navy-light) 50%, var(--l-navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--l-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(65,90,119,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero h1 {
  position: relative;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.legal-hero .legal-date {
  position: relative;
  font-size: 14px;
  color: var(--l-steel);
  font-weight: 500;
}

.legal-hero .legal-breadcrumbs {
  position: relative;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-hero .legal-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--l-steel);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: var(--l-transition);
}

.legal-hero .legal-breadcrumbs a:hover {
  color: var(--l-gold);
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.2);
}

/* ─── Content area ─── */
.legal-wrapper {
  max-width: 820px;
  margin: -32px auto 0;
  padding: 0 28px 80px;
  position: relative;
  z-index: 1;
}

.legal-card {
  background: #fff;
  border-radius: var(--l-radius);
  box-shadow: var(--l-shadow-lg);
  padding: 48px 52px;
  border: 1px solid rgba(0,0,0,0.04);
}

/* Section headings */
.legal-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--l-navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--l-gold-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--l-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--l-navy-mid);
  margin: 24px 0 10px;
}

/* Text */
.legal-card p {
  color: var(--l-text);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-card p strong {
  color: var(--l-navy);
  font-weight: 600;
}

/* Lists */
.legal-card ul,
.legal-card ol {
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--l-text);
  line-height: 1.7;
}

.legal-card li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--l-gold);
  border-radius: 50%;
}

.legal-card li strong {
  color: var(--l-navy);
}

/* Links */
.legal-card a {
  color: var(--l-slate);
  font-weight: 500;
  border-bottom: 1px solid var(--l-gold-dim);
  transition: var(--l-transition);
}

.legal-card a:hover {
  color: var(--l-navy);
  border-color: var(--l-gold);
}

/* Numbered paragraphs (alotaxi style) */
.legal-card .numbered {
  counter-reset: sub-item;
}

.legal-card .numbered > p {
  padding-left: 32px;
  position: relative;
}

.legal-card .numbered > p::before {
  counter-increment: sub-item;
  content: counter(sub-item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--l-navy);
}

/* Confirmation box */
.legal-confirm {
  margin-top: 48px;
  padding: 36px;
  background: linear-gradient(135deg, var(--l-navy) 0%, var(--l-navy-light) 100%);
  border-radius: var(--l-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-confirm::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--l-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.legal-confirm h3 {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-confirm p {
  position: relative;
  color: var(--l-steel);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.legal-confirm .legal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--l-gold);
  color: var(--l-navy);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--l-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--l-transition);
  text-decoration: none;
}

.legal-confirm .legal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.25);
  border-bottom: none;
}

/* ─── Footer ─── */
.legal-footer {
  background: var(--l-navy);
  padding: 40px 28px 24px;
  border-top: 1px solid rgba(255,215,0,0.08);
}

.legal-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.legal-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-footer-brand p {
  color: var(--l-slate);
  font-size: 13px;
  max-width: 260px;
  line-height: 1.6;
}

.legal-footer-col h4 {
  color: var(--l-cloud);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.legal-footer-col ul { list-style: none; }

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

.legal-footer-col a {
  color: var(--l-slate);
  font-size: 14px;
  border-bottom: none;
}

.legal-footer-col a:hover {
  color: var(--l-gold);
}

.legal-footer-bottom {
  max-width: 1120px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--l-navy-mid);
  text-align: center;
}

.legal-footer-bottom p {
  color: var(--l-slate);
  font-size: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .legal-topbar-inner { padding: 0 16px; }
  .legal-nav a { padding: 6px 10px; font-size: 12px; }
  .legal-hero { padding: 56px 16px 40px; }
  .legal-hero h1 { font-size: 26px; }
  .legal-wrapper { padding: 0 16px 60px; }
  .legal-card { padding: 32px 24px; }
  .legal-card h2 { font-size: 18px; }
  .legal-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .legal-footer-brand p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .legal-nav { gap: 2px; }
  .legal-nav a { padding: 6px 8px; font-size: 11px; }
  .legal-hero h1 { font-size: 22px; }
  .legal-card { padding: 24px 18px; }
  .legal-card h2 { font-size: 16px; }
  .legal-confirm { padding: 28px 20px; }
}
