/* ══════════════════════════════════════════
   BRAUND — Main Stylesheet
   Paleta: #0d0c14 · #5128f2 · #EDEDF2
   Tipografía: Cormorant Garamond + DM Sans
══════════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:  #0d0c14;
  --card:   #11101a;
  --purple: #5128f2;
  --white:  #ededf2;
  --muted:  rgba(237,237,242,0.42);
  --border: rgba(237,237,242,0.07);
  --serif:  'Cormorant Garamond', serif;
  --sans:   'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cur {
  position: fixed; width: 9px; height: 9px;
  background: var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .2s ease;
}
#ring {
  position: fixed; width: 34px; height: 34px;
  border: 1px solid rgba(81,40,242,.35); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 9997; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--purple); }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  border-bottom: 1px solid transparent;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
}
#nav.scrolled {
  padding: 16px 56px;
  background: rgba(13,12,20,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
/* Logo in nav — always white */
.nav-logo img,
.nav-logo .site-logo,
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img {
    height: 26px;
    width: auto;
    display: block;
    /* Force white — works on any logo color */
    filter: brightness(0) invert(1);
}
.nav-logo a,
.nav-logo .custom-logo-link { display: block; }

.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links li a {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-links li a:hover { color: var(--white); }

.nav-cta {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: var(--purple);
  padding: 12px 26px; text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding: 0 56px; padding-top: 130px;
  display: grid; grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 30% 60%, rgba(81,40,242,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 75% 40%, rgba(81,40,242,.04) 0%, transparent 60%);
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }

.hero-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 36px;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--purple); }

h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(58px, 7.5vw, 108px);
  line-height: .95; letter-spacing: -.02em;
  margin-bottom: 36px;
}
h1 em { font-style: italic; color: var(--purple); }

.hero-desc {
  font-size: 15px; line-height: 1.75;
  color: var(--muted); max-width: 380px; margin-bottom: 52px;
}
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; transition: all .25s ease; cursor: none;
}
.btn-primary { background: var(--purple); color: var(--white); padding: 16px 34px; }
.btn-primary:hover { opacity: .85; transform: translateY(-2px); color: var(--white); }
.btn-ghost { color: var(--muted); border: 1px solid var(--border); padding: 15px 28px; }
.btn-ghost:hover { color: var(--white); border-color: rgba(237,237,242,.22); }

/* Hero right */
.hero-right { display: flex; flex-direction: column; gap: 28px; }
.hero-visual {
  position: relative; border: 1px solid var(--border);
  background: var(--card); aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(81,40,242,.12) 0%, transparent 60%);
}
.hero-visual-logo { position: relative; z-index: 1; width: 50%; opacity: .1; filter: brightness(10); }
.hero-visual-text { position: absolute; bottom: 28px; left: 28px; right: 28px; z-index: 2; }
.hvt-tag {
  font-family: var(--serif); font-style: italic;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.hvt-h { font-family: var(--serif); font-size: 22px; font-weight: 300; font-style: italic; line-height: 1.2; }
.bracket {
  position: absolute; right: -8px; bottom: -4px;
  font-family: var(--sans); font-size: 52px; font-weight: 300;
  color: var(--purple); line-height: 1; pointer-events: none; opacity: .7;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.hstat { background: var(--card); padding: 24px 20px; }
.hstat-n { font-family: var(--serif); font-size: 38px; font-weight: 300; line-height: 1; }
.hstat-n em { font-style: italic; color: var(--purple); }
.hstat-l { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden; background: var(--card);
}
.marquee-inner { display: flex; width: max-content; animation: marquee-scroll 22s linear infinite; }
.mi {
  font-family: var(--serif); font-style: italic; font-size: 14px; font-weight: 300;
  color: var(--muted); padding: 0 36px; white-space: nowrap;
  display: flex; align-items: center; gap: 36px;
}
.mi::after { content: '·'; color: var(--purple); font-style: normal; font-size: 20px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   SECTIONS — SHARED
══════════════════════════════════════════ */
.section { padding: 120px 56px; }

.s-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 20px;
}
.s-tag::before { content: ''; width: 20px; height: 1px; background: var(--purple); }

h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.0; letter-spacing: -.01em;
}
h2 em { font-style: italic; color: var(--purple); }

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.svc-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; margin-bottom: 72px;
}
.svc-desc { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 400px; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
}
.svc-card {
  background: var(--black); padding: 44px 36px;
  position: relative; overflow: hidden; transition: background .3s;
}
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0; background: var(--purple); transition: width .4s ease;
}
.svc-card:hover { background: var(--card); }
.svc-card:hover::after { width: 100%; }
.svc-n {
  font-family: var(--sans); font-size: 10px; letter-spacing: .18em;
  color: var(--purple); opacity: .5; margin-bottom: 28px;
}
.svc-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  font-style: italic; margin-bottom: 14px; color: var(--white);
}
.svc-card p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.about {
  background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-visual {
  aspect-ratio: 3/4; background: var(--black);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 20% 70%, rgba(81,40,242,.1) 0%, transparent 60%);
}
.about-logo-bg {
  position: absolute; bottom: -20px; right: -20px;
  width: 75%; opacity: .06; filter: brightness(10);
}
.about-icon { position: relative; z-index: 1; width: 32%; opacity: .5; filter: brightness(10); }
.about-badge {
  position: absolute; top: 28px; left: 28px;
  background: var(--purple); padding: 9px 18px;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--white); font-weight: 500;
}
.about-year {
  position: absolute; bottom: 28px; right: 28px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.about-content h2 { margin-bottom: 28px; }
.about-content p { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.about-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.about-li {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.about-li::before { content: ''; width: 18px; height: 1px; background: var(--purple); flex-shrink: 0; }

/* ══════════════════════════════════════════
   PROCESO
══════════════════════════════════════════ */
.proc-header { text-align: center; margin-bottom: 72px; }
.proc-header .s-tag { justify-content: center; }
.proc-header .s-tag::before { display: none; }
.proc-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
}
.proc-step {
  padding: 44px 32px; border-right: 1px solid var(--border); position: relative;
}
.proc-step:last-child { border-right: none; }
.proc-n {
  font-family: var(--serif); font-size: 72px; font-weight: 300; font-style: italic;
  color: rgba(81,40,242,.08); line-height: 1; margin-bottom: 20px;
}
.proc-step h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 400; font-style: italic;
  color: var(--white); margin-bottom: 10px;
}
.proc-step p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.proc-arrow {
  position: absolute; top: 44px; right: -11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--purple); z-index: 1;
}

/* ══════════════════════════════════════════
   BAND — RESULTADOS
══════════════════════════════════════════ */
.band { background: var(--purple); padding: 90px 56px; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.band h2 { color: var(--white); }
.band h2 em { font-style: italic; color: rgba(0,0,0,.45); }
.band .s-tag { color: rgba(255,255,255,.55); }
.band .s-tag::before { background: rgba(255,255,255,.55); }
.band-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.bstat-n {
  font-family: var(--serif); font-size: 56px; font-weight: 300;
  line-height: 1; color: var(--white);
}
.bstat-n em { font-style: italic; }
.bstat-l {
  font-family: var(--sans); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px;
}

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact { text-align: center; }
.contact .s-tag { justify-content: center; }
.contact .s-tag::before { display: none; }
.contact h2 { margin: 0 auto 32px; }
.contact-sub {
  font-size: 16px; line-height: 1.75; color: var(--muted);
  max-width: 480px; margin: 0 auto 52px;
}
.contact-email {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3vw, 44px); font-weight: 300;
  color: var(--white); text-decoration: none; margin-bottom: 52px;
  transition: color .2s;
}
.contact-email:hover { color: var(--purple); }
.contact-social {
  display: flex; justify-content: center; gap: 28px; margin-top: 40px;
}
.contact-social a {
  font-family: var(--sans); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.contact-social a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border); padding: 40px 56px;
  background: var(--card);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-logo img,
.footer-logo .site-logo,
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img { height: 18px; width: auto; opacity: .55; filter: brightness(0) invert(1); display: block; }
.footer-logo a,
.footer-logo .custom-logo-link { display: flex; }
.footer-copy {
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.footer-links { display: flex; gap: 28px; justify-content: flex-end; list-style: none; }
.footer-links li a {
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-links li a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .svc-header { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 4/3; }
  .proc-grid { grid-template-columns: repeat(2,1fr); }
  .proc-step:nth-child(2) { border-right: none; }
  .band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px; padding-top: 100px; }
  .section { padding: 80px 24px; }
  .band { padding: 70px 24px; }
  .contact { padding: 80px 24px; }
  footer { padding: 32px 24px; grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-logo { justify-content: center; display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: none; border-bottom: 1px solid var(--border); }
  .proc-arrow { display: none; }
  .band-stats { grid-template-columns: repeat(2,1fr); }
  #cur, #ring { display: none; }
  body { cursor: auto; }
  .btn, .nav-cta, .contact-email, a { cursor: pointer; }
}

/* ══════════════════════════════════════════
   ASTRA / GUTENBERG CLEANUP
   Hides any leftover blocks from old theme
══════════════════════════════════════════ */

/* Hide WordPress default page content wrapper — we manage layout ourselves */
.braund-site .entry-content,
.braund-site .page-content,
.braund-site .wp-block-group,
.braund-site article.page,
.braund-site .site-content,
.braund-site #content,
.braund-site #primary,
.braund-site .ast-container,
.braund-site .ast-article-post,
.braund-site .entry-header,
.braund-site .post-title {
    display: none !important;
}

/* Hide Astra header/footer if somehow still rendering */
.braund-site .site-header,
.braund-site .ast-hfb-header,
.braund-site .site-footer,
.braund-site .ast-site-footer,
.braund-site #masthead,
.braund-site #colophon {
    display: none !important;
}

/* Hide UAGB blocks */
.braund-site .uagb-container,
.braund-site .wp-block-uagb-container,
.braund-site [class*="uagb-"] {
    display: none !important;
}

/* Suppress WooCommerce shortcode output if orphaned */
.braund-site .woocommerce,
.braund-site .wc-block-grid {
    display: none !important;
}

/* proc-header s-tag centered fix */
.proc-header .s-tag { justify-content: center; }
.proc-header .s-tag::before { display: none; }

/* ══════════════════════════════════════════
   LANGUAGE TOGGLE
══════════════════════════════════════════ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  padding: 7px 12px;
  cursor: none;
  transition: border-color .2s;
}
.lang-toggle:hover { border-color: rgba(237,237,242,.2); }

.lang-opt {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
  transition: color .2s;
  cursor: pointer;
}
.lang-opt.active { color: var(--white); }
.lang-sep {
  font-size: 10px;
  color: var(--border);
}

/* ══════════════════════════════════════════
   CONTACT PHONES
══════════════════════════════════════════ */
.contact-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity .2s;
}
.contact-phone:hover { opacity: .7; }
.phone-flag { font-size: 20px; line-height: 1; }
.phone-num {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  letter-spacing: .02em;
}

/* Adjust contact-email spacing when phones follow */
.contact-email { margin-bottom: 28px; }

@media (max-width: 768px) {
  .contact-phones { flex-direction: column; gap: 16px; }
  .lang-toggle { padding: 6px 10px; }
}

/* ══════════════════════════════════════════
   FOOTER EXPANDIDO v1.3
══════════════════════════════════════════ */
#site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  padding: 72px 56px 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {}
.footer-logo img,
.footer-logo .site-logo,
.footer-logo .custom-logo-link img {
  height: 20px; width: auto;
  filter: brightness(0) invert(1);
  opacity: .6; display: block; margin-bottom: 16px;
}
.footer-logo a, .footer-logo .custom-logo-link { display: inline-block; }
.footer-tagline {
  font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.footer-nav-group {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.footer-col-title {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--white); margin-bottom: 20px; font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color .2s; letter-spacing: .02em;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.footer-bottom-links {
  display: flex; align-items: center; gap: 12px;
}
.footer-bottom-links a {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--white); }
.footer-dot { color: var(--border); font-size: 14px; }

/* ══════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  z-index: 9000; max-width: 860px; margin: 0 auto;
  background: #18172a; border: 1px solid rgba(81,40,242,.3);
  padding: 28px 32px;
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 200px; }
.cookie-title {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  font-style: italic; color: var(--white); margin-bottom: 8px;
}
.cookie-desc { font-size: 13px; line-height: 1.65; color: var(--muted); }
.cookie-actions {
  display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 20px; border: none; cursor: pointer; transition: all .2s;
}
.cookie-btn-settings {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.cookie-btn-settings:hover { color: var(--white); border-color: rgba(237,237,242,.2); }
.cookie-btn-reject {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.cookie-btn-reject:hover { color: var(--white); }
.cookie-btn-accept { background: var(--purple); color: var(--white); }
.cookie-btn-accept:hover { opacity: .85; }

/* ══════════════════════════════════════════
   COOKIE MODAL
══════════════════════════════════════════ */
.cookie-modal {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(13,12,20,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-inner {
  background: #18172a; border: 1px solid rgba(81,40,242,.25);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px 0; margin-bottom: 24px;
}
.cookie-modal-header h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 300;
  font-style: italic; color: var(--white);
}
.cookie-modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px; transition: color .2s;
}
.cookie-modal-close:hover { color: var(--white); }
.cookie-modal-body { padding: 0 32px; }
.cookie-modal-footer { padding: 24px 32px 32px; }

.cookie-type {
  border-top: 1px solid var(--border); padding: 20px 0;
}
.cookie-type-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
}
.cookie-type-name {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--white); margin-bottom: 6px;
}
.cookie-type-desc { font-size: 12px; line-height: 1.6; color: var(--muted); }
.always-on {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); white-space: nowrap; padding-top: 2px; flex-shrink: 0;
}

/* Toggle switch */
.cookie-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 24px; cursor: pointer; transition: background .3s;
}
.cookie-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); left: 3px; top: 3px; transition: transform .3s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--purple); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }

/* ══════════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════════ */
.legal-page { min-height: 100vh; }
.legal-hero {
  padding: 160px 56px 80px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(81,40,242,.06) 0%, transparent 65%);
}
.legal-hero-inner { max-width: 700px; }
.legal-hero .s-tag { margin-bottom: 20px; }
.legal-hero h1 {
  font-family: var(--serif); font-size: clamp(36px,5vw,64px); font-weight: 300;
  line-height: 1.0; letter-spacing: -.01em; margin-bottom: 20px;
}
.legal-meta {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.legal-body {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 60px; padding: 72px 56px; max-width: 1200px; margin: 0 auto;
}

/* Table of contents */
.legal-toc {
  position: sticky; top: 100px; align-self: start;
  border: 1px solid var(--border); padding: 28px 24px;
  background: var(--card);
}
.toc-title {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 16px;
}
.legal-toc ol { list-style: none; counter-reset: toc-counter; }
.legal-toc li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
}
.legal-toc li a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: color .2s; line-height: 1.5; display: block;
}
.legal-toc li a:hover { color: var(--white); }

/* Legal content typography */
.legal-content h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  font-style: italic; color: var(--white);
  margin: 48px 0 16px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--white); margin: 28px 0 10px; letter-spacing: .04em;
}
.legal-content p {
  font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 20px 0; padding-left: 0; list-style: none;
}
.legal-content li {
  font-size: 14px; line-height: 1.75; color: var(--muted);
  margin-bottom: 8px; padding-left: 20px; position: relative;
}
.legal-content li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--purple); font-size: 10px; top: 5px;
}
.legal-content a { color: var(--purple); text-decoration: none; transition: opacity .2s; }
.legal-content a:hover { opacity: .75; }
.legal-content strong { color: var(--white); font-weight: 500; }

/* ══════════════════════════════════════════
   RESPONSIVE ADDITIONS
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 768px) {
  .footer-top { padding: 48px 24px 40px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-nav-group { grid-template-columns: 1fr 1fr; }
  .cookie-inner { flex-direction: column; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .legal-hero { padding: 120px 24px 56px; }
  .legal-body { padding: 48px 24px; }
}
