/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: 80px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: calc(var(--z-nav) + 1);
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-padding);
}

.section--alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--ink);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  position: relative;
  z-index: 2;
}

.site-header .nav-backdrop {
  z-index: calc(var(--z-overlay) - 1);
}

.site-header .nav-links {
  z-index: var(--z-overlay);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: var(--ink);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.nav-cta {
  margin-left: var(--space-sm);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: calc(var(--z-overlay) + 1);
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--gradient-hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg__base {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, transparent 42%),
    linear-gradient(225deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 38%),
    var(--gradient-hero-bg);
}

.hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform, opacity;
  animation: hero-orb-float 14s ease-in-out infinite;
}

.hero-bg__orb--purple {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(
    circle,
    rgba(191, 64, 191, 0.38) 0%,
    rgba(var(--primary-rgb), 0.2) 40%,
    transparent 72%
  );
}

.hero-bg__orb--violet {
  width: min(420px, 58vw);
  height: min(420px, 58vw);
  bottom: 8%;
  right: 18%;
  background: radial-gradient(
    circle,
    rgba(107, 33, 168, 0.28) 0%,
    rgba(var(--primary-rgb), 0.1) 45%,
    transparent 72%
  );
  animation-delay: -5s;
}

.hero-bg__orb--charcoal {
  width: min(380px, 52vw);
  height: min(380px, 52vw);
  bottom: -8%;
  left: -6%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.1) 0%,
    rgba(var(--accent-rgb), 0.04) 50%,
    transparent 72%
  );
  animation-delay: -9s;
}

@keyframes hero-orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  33% {
    transform: translate(-2%, 3%) scale(1.04);
    opacity: 1;
  }
  66% {
    transform: translate(2%, -2%) scale(0.98);
    opacity: 0.9;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--ink);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.14) 0%,
    rgba(var(--primary-rgb), 0.06) 38%,
    rgba(255, 255, 255, 0) 72%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-ecosystem {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin-inline: auto;
  overflow: hidden;
}

.hero-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: hub-heartbeat 4s ease-in-out infinite;
}

@keyframes hub-heartbeat {
  0%, 100% {
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%) scale(1);
  }
  12% {
    box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.45), var(--shadow-lg);
    transform: translate(-50%, -50%) scale(1.04);
  }
  24% {
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-center-hub svg,
.hero-ecg-icon {
  width: 52px;
  height: 26px;
  color: var(--white);
}

.hero-ecg-icon path {
  stroke-dasharray: 80;
  animation: hero-ecg-draw 4s linear infinite;
}

@keyframes hero-ecg-draw {
  0% { stroke-dashoffset: 80; }
  25% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -80; }
}

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card-icon svg {
  width: 20px;
  height: 20px;
}

.floating-card--mobile {
  top: 8%;
  left: 5%;
  animation-delay: 0s;
}

.floating-card--mobile .floating-card-icon {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.floating-card--pharmacy {
  top: 5%;
  right: 2%;
  animation-delay: 1s;
}

.floating-card--pharmacy .floating-card-icon {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.floating-card--doctor {
  bottom: 15%;
  left: 2%;
  animation-delay: 2s;
}

.floating-card--doctor .floating-card-icon {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
}

.floating-card--delivery {
  bottom: 8%;
  right: 5%;
  animation-delay: 3s;
}

.floating-card--delivery .floating-card-icon {
  background: rgba(var(--silver-rgb), 0.35);
  color: var(--accent-light);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  border: 2px dashed rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.about-text p {
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-card span {
  font-size: var(--font-size-sm);
  color: var(--ink-muted);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Vision & Mission */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.vm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vm-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.vm-icon svg {
  width: 28px;
  height: 28px;
}

.vm-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.vm-card p {
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
}

/* PilMate showcase */
.pilmate-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.pilmate-carousel {
  position: relative;
  width: min(100%, var(--pilmate-carousel-width, 380px));
  max-width: 100%;
  margin-inline: auto;
}

.pilmate-carousel__frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.pilmate-carousel__viewport {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-md);
}

.pilmate-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.pilmate-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilmate-carousel__slide img {
  width: 100%;
  height: auto;
  max-height: var(--pilmate-slide-max-height, none);
  object-fit: contain;
  object-position: center top;
  border-radius: 1.25rem;
  display: block;
  box-shadow: var(--shadow-md);
}

.pilmate-carousel__prev,
.pilmate-carousel__next {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pilmate-carousel__prev:hover,
.pilmate-carousel__next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pilmate-carousel__prev svg,
.pilmate-carousel__next svg {
  width: 20px;
  height: 20px;
}

.pilmate-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.pilmate-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--border);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.pilmate-carousel__dot.is-active {
  width: 28px;
  background: var(--primary);
}

.pilmate-content {
  max-width: 520px;
}

.pilmate-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.pilmate-content p {
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
}

/* Ecosystem infographic */
.ecosystem-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 400px;
  margin-inline: auto;
}

.ecosystem-node {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ecosystem-node:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.ecosystem-node--platform {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  font-size: var(--font-size-lg);
}

.ecosystem-node-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-node:not(.ecosystem-node--platform) .ecosystem-node-icon {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.ecosystem-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.ecosystem-connector::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--primary-light), transparent);
  animation: flow-down 2s ease-in-out infinite;
}

@keyframes flow-down {
  0% { top: -100%; }
  100% { top: 100%; }
}

.ecosystem-arrow {
  color: var(--primary);
  font-size: var(--font-size-xl);
  line-height: 1;
  padding: var(--space-xs) 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail strong {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-xs);
}

.contact-detail a,
.contact-detail span {
  font-weight: 600;
  color: var(--ink);
  line-height: var(--line-height-relaxed);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-info .cta-banner {
  margin-top: var(--space-2xl);
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: var(--white);
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-block: var(--space-xl);
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* Legal pages */
.page-hero {
  padding-top: calc(72px + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--bg-section);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 600px;
  margin-inline: auto;
}

.legal-body {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--space-3xl);
}

.legal-body h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.legal-body ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
