/* ── Design Tokens (aligned with Daya Patient App) ── */
:root {
  --pink: #E91E63;
  --pink-dark: #C2185B;
  --pink-light: #F8BBD9;
  --pink-surface: #FCE4EC;
  --purple: #9C27B0;
  --lavender: #E1BEE7;
  --bg: #FDF2F8;
  --bg-alt: #FFFFFF;
  --text: #2D3748;
  --text-secondary: #718096;
  --text-muted: #A0AEC0;
  --border: rgba(233, 30, 99, 0.12);
  --shadow-sm: 0 4px 16px rgba(233, 30, 99, 0.08);
  --shadow-md: 0 12px 40px rgba(233, 30, 99, 0.14);
  --shadow-lg: 0 24px 64px rgba(156, 39, 176, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-dark); }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--pink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section { padding: 6rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--pink-light);
  background: var(--pink-surface);
  color: var(--pink-dark);
}

.btn--full { width: 100%; }

/* ── Language Switcher ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-switch:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
  border-color: var(--pink-light);
}

/* ── RTL (Arabic) ── */
html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", var(--font);
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .nav__link--cta {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[dir="rtl"] .mission__pillar:hover {
  transform: translateX(-6px);
}

html[dir="rtl"] .mission__quote {
  border-left: none;
  border-right: 4px solid var(--pink);
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="rtl"] .hero__card--float-1 {
  right: auto;
  left: -20px;
}

html[dir="rtl"] .hero__card--float-2 {
  left: auto;
  right: -30px;
}

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(253, 242, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
.nav__brand:hover { color: var(--text); }

.nav__logo { width: 40px; height: 40px; flex-shrink: 0; }
.nav__logo--sm { width: 32px; height: 32px; }

.nav__wordmark-accent {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--pink);
  background: var(--pink-surface);
}

.nav__link--cta {
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff !important;
}
.nav__link--cta:hover,
.nav__link--cta.active {
  background: linear-gradient(135deg, var(--pink-dark), var(--purple));
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.hero__orb--1 {
  width: 480px; height: 480px;
  background: var(--pink-light);
  top: -120px; right: -80px;
}
.hero__orb--2 {
  width: 360px; height: 360px;
  background: var(--lavender);
  bottom: 10%; left: -100px;
}
.hero__orb--3 {
  width: 240px; height: 240px;
  background: var(--pink-surface);
  top: 40%; right: 30%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__stat dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat dd {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero visual cards */
.hero__visual { position: relative; min-height: 420px; }

.hero__card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero__card--main { padding: 1.5rem; }

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero__pulse {
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__progress {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero__progress-ring {
  position: relative;
  width: 100px; height: 100px;
  flex-shrink: 0;
}

.hero__progress-ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--pink-surface); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke: var(--pink);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 82;
  animation: ringFill 2s ease-out forwards;
}

@keyframes ringFill {
  from { stroke-dashoffset: 327; }
  to { stroke-dashoffset: 82; }
}

.hero__progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero__progress-label strong { font-size: 1.5rem; color: var(--pink); line-height: 1; }
.hero__progress-label span { font-size: 0.75rem; color: var(--text-muted); }

.hero__progress-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.hero__progress-desc { font-size: 0.8125rem; color: var(--text-secondary); }

.hero__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 10px;
}
.hero__features .icon { font-size: 1rem; }

.hero__card--float {
  position: absolute;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 4s ease-in-out infinite;
}
.hero__card--float span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--pink-surface);
  color: var(--pink);
  border-radius: 50%;
  font-size: 0.75rem;
}
.hero__card--float-1 { top: -10px; right: -20px; animation-delay: 0s; }
.hero__card--float-2 { bottom: 40px; left: -30px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--pink); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__story h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.about__story p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.about__story p:last-child { margin-bottom: 0; }

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Mission ── */
.mission__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.mission__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--pink-dark);
  border-left: 4px solid var(--pink);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  line-height: 1.5;
}

.mission__content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.mission__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.mission__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.mission__check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-radius: 50%;
  font-size: 0.6875rem;
  margin-top: 2px;
}

.mission__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission__pillar {
  background: linear-gradient(135deg, rgba(233,30,99,0.06), rgba(156,39,176,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition);
}
.mission__pillar:hover { transform: translateX(6px); }

.mission__pillar-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-radius: 12px;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.mission__pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.mission__pillar p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Vision ── */
.vision__timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.vision__step {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.vision__step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vision__step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
}

.vision__step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.vision__step-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__detail-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-surface);
  color: var(--pink);
  border-radius: 12px;
}

.contact__details strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.125rem;
}

.contact__details a { font-weight: 500; }

.contact__form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink-light);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.25rem;
}
.form-feedback.success { color: #4CAF50; }
.form-feedback.error { color: #F44336; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand--footer { color: #fff; }
.nav__brand--footer:hover { color: #fff; }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-footer__nav a:hover { color: var(--pink-light); }

.site-footer__copy { font-size: 0.8125rem; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid,
  .about__grid,
  .mission__layout,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__visual { min-height: 360px; order: -1; }
  .vision__timeline { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(253, 242, 248, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link { width: 100%; text-align: center; padding: 0.75rem; }
  .nav__link--cta { margin-left: 0; margin-top: 0.5rem; }
  .lang-switch { width: 100%; margin-top: 0.5rem; }

  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about__cards { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }

  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__nav { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 1rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ── Delete Account (hidden page) ── */
.delete-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.delete-page {
  width: min(480px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.delete-page__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.delete-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
}

.delete-page__brand:hover { color: var(--text); }

.delete-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.delete-page__header .delete-page__brand {
  margin-bottom: 0;
}

.delete-page__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.delete-page__lead {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.delete-page__warning {
  background: #FFF3E0;
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 12px;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  color: #E65100;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.delete-page__form { margin-bottom: 1.5rem; }

.delete-page__footer-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn--danger {
  background: #D32F2F;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--danger:hover:not(:disabled) {
  color: #fff;
  background: #B71C1C;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Legal pages (Terms & Conditions) ── */
.legal-page-body {
  min-height: 100vh;
  padding: 2.5rem 0 3rem;
}

.legal-page {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.legal-page__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.legal-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
}

.legal-page__brand:hover { color: var(--text); }

.legal-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.legal-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.legal-page__lead {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.legal-page__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legal-page__section h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text);
}

.legal-page__section p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-page__section p + p {
  margin-top: 0.75rem;
}

.legal-page__list {
  margin-top: 0.625rem;
  padding-inline-start: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-page__list li + li {
  margin-top: 0.375rem;
}

.legal-page__footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .legal-page__card { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
