/* ============================================================
   Rivas Studio LP — Complete Redesign 2026-02-28
   Design: Dark purple × cyan gradient, glass morphism
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #04020c;
  --bg-2:        #08040f;
  --bg-card:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --purple:      #d946ef;
  --cyan:        #22d3ee;
  --gold:        #fbbf24;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --grad:        linear-gradient(135deg, #d946ef, #22d3ee);
  --grad-hover:  linear-gradient(135deg, #e879f9, #38bdf8);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(217,70,239,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: calc(28px + 52px);
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- Gradient Text --- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Section padding --- */
.section-pad { padding: 6rem 0; }

/* --- Section typography --- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible { opacity: 1; transform: none; }

/* --- Fade-in (hero) --- */
.fade-in { animation: fadeUp 0.7s ease both; }
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Age Bar
   ============================================================ */
.age-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(4,2,12,0.95);
  border-bottom: 1px solid rgba(251,191,36,0.2);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: #fbbf24;
  letter-spacing: 0.03em;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.age-bar strong { font-weight: 700; }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 28px; left: 0; right: 0;
  z-index: 100;
  background: rgba(4,2,12,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-ctas { display: flex; gap: 0.5rem; }

.nav-btn {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-btn-primary { background: var(--grad); color: #fff; }
.nav-btn-primary:hover { background: var(--grad-hover); transform: translateY(-1px); }
.nav-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.nav-btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4,2,12,0.3)  0%,
    rgba(4,2,12,0.05) 30%,
    rgba(4,2,12,0.65) 60%,
    rgba(4,2,12,0.97) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(241,245,249,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.br-desktop { display: none; }
@media (min-width: 640px) { .br-desktop { display: block; } }

.hero-cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-note { font-size: 0.78rem; color: var(--text-muted); }
.hero-note strong { color: var(--cyan); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(217,70,239,0.3);
}
.btn-primary:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217,70,239,0.4);
}
.btn-primary.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

.btn-ghost {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-ghost.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

.btn-ghost-sm {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-ghost-sm:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ============================================================
   Workflow
   ============================================================ */
.workflow { background: var(--bg-2); }

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-bottom: 2rem;
}

.workflow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.workflow-step:hover {
  border-color: rgba(217,70,239,0.3);
  box-shadow: var(--shadow-glow);
}

.step-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.step-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.workflow-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.workflow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.step-tool-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(217,70,239,0.12);
  border: 1px solid rgba(217,70,239,0.25);
  color: var(--purple);
  letter-spacing: 0.03em;
}

.workflow-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0 0.75rem;
}

.workflow-loop {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  max-width: 580px;
  margin: 0 auto;
}
.loop-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-section { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
  max-width: 1200px;
  padding: 0 1rem;
}

.gallery-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--bg-2);
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.65);
}

.gallery-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.8rem;
  background: linear-gradient(to top, rgba(4,2,12,0.9) 0%, transparent 60%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-card:hover .gallery-info { opacity: 1; transform: none; }

.gallery-model {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.gallery-style { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.gallery-cta { text-align: center; }

/* ============================================================
   BYOK
   ============================================================ */
.byok-section { background: var(--bg-2); }

.byok-card {
  background: var(--bg-card);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  box-shadow: 0 0 60px rgba(34,211,238,0.06);
}

.byok-icon { font-size: 3rem; flex-shrink: 0; padding-top: 0.25rem; }

.byok-h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.byok-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.byok-lead strong { color: var(--cyan); }

.byok-compare {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  width: fit-content;
}
.byok-compare-item { text-align: center; }
.compare-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.compare-val {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.compare-val small { font-size: 0.8rem; font-weight: 600; }
.byok-win .compare-val { font-size: 1.6rem; }
.byok-compare-divider {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section { background: var(--bg); }

.pricing-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: var(--shadow); }
.plan-card.plan-popular {
  border-color: rgba(217,70,239,0.4);
  box-shadow: 0 0 40px rgba(217,70,239,0.12);
}

.popular-label {
  position: absolute;
  top: -0.65rem; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.plan-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.plan-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.plan-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.plan-list li::before { content: "✓  "; color: var(--cyan); font-weight: 700; }
.plan-list strong { color: var(--text); }

.plan-btn {
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.plan-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.plan-btn-popular {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.plan-btn-popular:hover { background: var(--grad-hover); color: #fff; }

.i2p-block {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.i2p-icon { font-size: 1.75rem; flex-shrink: 0; }
.i2p-body { flex: 1; }
.i2p-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.i2p-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--gold);
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  animation: pulse-badge 2s ease infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.i2p-body p { font-size: 0.82rem; color: var(--text-muted); }

.pricing-note {
  font-size: 0.73rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
}

/* ============================================================
   Other Tools
   ============================================================ */
.tools-section { background: var(--bg-2); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}
.tool-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.tool-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.tool-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tool-body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.beta-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--cyan);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta { background: var(--bg); }

.final-cta-inner {
  background: var(--bg-card);
  border: 1px solid rgba(217,70,239,0.2);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 0 80px rgba(217,70,239,0.08);
}
.final-cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.final-cta-inner > p { color: var(--text-muted); margin-bottom: 2rem; }
.final-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.age-final { font-size: 0.72rem; color: var(--text-dim); }

/* ============================================================
   About (minimal)
   ============================================================ */
.about-minimal { background: var(--bg-2); padding: 4rem 0; }
.about-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.about-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}
.about-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-copy em { font-style: normal; color: var(--text); }
.about-mission { font-size: 0.78rem; color: var(--text-dim); font-style: italic; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-brand a { color: var(--text-dim); }
.footer-brand a:hover { color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; font-size: 0.75rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text-muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .workflow-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .byok-card { flex-direction: column; gap: 1.5rem; padding: 2rem; }
  .i2p-block { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body { padding-top: calc(28px + 52px); }
  .section-pad { padding: 4rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
  .plan-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-content { padding: 4rem 1.25rem 3rem; }
  .byok-compare { flex-direction: column; gap: 0.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem; }
  .nav-btn { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
}

/* ============================================================
   Legal Pages (terms / privacy / tokushoho)
   ============================================================ */

/* --- Header (legal pages use plain <header><nav>) --- */
header:not(.site-header) {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4,2,12,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
header:not(.site-header) nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body:has(header:not(.site-header)) {
  padding-top: 52px;
}
.cta-button-small {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.cta-button-small:hover { opacity: 0.88; }

/* --- Main content --- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-page section {
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal-page p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-page ol,
.legal-page ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-page li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-page li > ul,
.legal-page li > ol {
  margin-top: 0.4rem;
}
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--cyan); text-decoration: underline; }
.legal-page a:hover { opacity: 0.8; }
.legal-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Footer (legal pages use .footer-content) --- */
footer:has(.footer-content) {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
footer:has(.footer-content) .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
footer:has(.footer-content) .footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
footer:has(.footer-content) .footer-links a:hover { color: var(--text-muted); }

@media (max-width: 640px) {
  .legal-page { padding: 3rem 1.25rem 4rem; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  footer:has(.footer-content) .footer-links { flex-wrap: wrap; gap: 0.75rem; }
}
