:root {
  --ink: #10233f;
  --muted: #64748b;
  --line: #d9e4ee;
  --paper: #ffffff;
  --mist: #f5f9fb;
  --teal: #027d88;
  --teal-dark: #005a62;
  --rose: #c74668;
  --gold: #c6923a;
  --navy: #08294c;
  --shadow: 0 24px 70px rgba(14, 37, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.telugu {
  font-family: "Noto Sans Telugu", Inter, sans-serif;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 228, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #31445f;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.header-call,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.header-call {
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(8, 41, 76, 0.22);
}

.header-call svg,
.btn svg,
.floating-call svg,
.service-card svg,
.quick-access svg,
.doctor-list svg,
.contact-links svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 41, 76, 0.94) 0%, rgba(8, 41, 76, 0.78) 45%, rgba(8, 41, 76, 0.28) 100%),
    url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.95) 100%),
    radial-gradient(circle at 85% 20%, rgba(199, 70, 104, 0.22), transparent 34%);
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 84px;
  color: #fff;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #91f0ea;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  font-weight: 850;
}

h3 {
  font-size: 1.1rem;
  font-weight: 850;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  padding: 13px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 18px 40px rgba(199, 70, 104, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-dark {
  color: #fff;
  background: var(--navy);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-meta span {
  padding: 9px 13px;
  color: #eafffc;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 800;
}

.quick-access {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: -36px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-access div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 24px;
  line-height: 1.35;
  font-weight: 800;
}

.quick-access div + div {
  border-left: 1px solid var(--line);
}

.quick-access svg {
  color: var(--teal);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-heading {
  display: block;
  max-width: 100%;
  margin-bottom: 34px;
  text-align: left;
}

.section-heading h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.section-copy,
.experience-copy p,
.doctor-content p,
.appointment-copy p {
  color: #53657b;
  font-size: 1.04rem;
}

.care-intro {
  display: grid;
  grid-template-columns: 1fr;
}

.care-intro .section-heading {
  margin-bottom: 12px;
}

.care-intro .section-copy {
  max-width: 840px;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 230px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(14, 37, 64, 0.07);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
  margin-bottom: 22px;
}

.service-card p {
  margin: 13px 0 0;
  color: var(--muted);
}

.doctor-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  align-items: stretch;
  background: var(--mist);
}

.doctor-visual {
  min-height: 560px;
}

.doctor-visual img {
  height: 100%;
  object-fit: cover;
}

.doctor-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: 650px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 7vw, 94px);
}

.doctor-content h2 {
  color: var(--navy);
}

.doctor-credentials {
  margin: -8px 0 0;
  color: var(--rose);
  font-weight: 900;
}

.doctor-list {
  display: grid;
  gap: 12px;
}

.doctor-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.doctor-list svg {
  color: var(--teal);
}

.doctor-content .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.experience-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.metrics div {
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics dt {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.metrics dd {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 750;
}

.experience-grid img {
  height: 100%;
  min-height: 430px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.gallery .gallery-wide {
  grid-column: 1 / -1;
}

.gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(8, 41, 76, 0.84);
  border-radius: 8px;
  font-weight: 850;
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  padding: clamp(72px, 9vw, 112px) max(18px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(115deg, rgba(2, 125, 136, 0.1), rgba(199, 70, 104, 0.08)),
    var(--mist);
}

.appointment-copy h2 {
  color: var(--navy);
}

.timings {
  display: grid;
  gap: 8px;
  width: min(100%, 390px);
  margin-top: 30px;
  padding: 22px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.timings span {
  color: #9ee7e2;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 850;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  outline: 0;
}

.appointment-form input,
.appointment-form select {
  min-height: 48px;
  padding: 0 14px;
}

.appointment-form textarea {
  resize: vertical;
  min-height: 120px;
  padding: 13px 14px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(2, 125, 136, 0.12);
}

.appointment-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.65fr);
  gap: 32px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0;
}

.contact-details address {
  margin-top: 24px;
  color: #53657b;
  font-style: normal;
  font-size: 1.08rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.contact-panel {
  padding: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.contact-panel h3 {
  margin-bottom: 16px;
}

.contact-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  gap: 12px;
}

.floating-btn {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.floating-call {
  background: var(--rose);
  box-shadow: 0 20px 46px rgba(199, 70, 104, 0.34);
}

.floating-whatsapp {
  background: #25d366;
  box-shadow: 0 20px 46px rgba(37, 211, 102, 0.34);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 64px);
  color: #d9e8f2;
  background: #061c34;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.nav-open .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .quick-access,
  .service-grid,
  .doctor-band,
  .experience-grid,
  .appointment-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-access div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .doctor-visual {
    min-height: 420px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery .gallery-wide {
    grid-column: 1 / -1;
  }

  .gallery figure {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  /* Smaller floating buttons, kept clear of the screen edge / safe area */
  .floating-actions {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 21px;
    height: 21px;
  }

  /* Give the page a little extra bottom space so the buttons never cover the footer */
  .site-footer {
    padding-bottom: 84px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 0.94rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(8, 41, 76, 0.92), rgba(8, 41, 76, 0.74)),
      url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1100&q=80") center / cover;
  }

  .hero-inner {
    width: min(100% - 32px, 1120px);
    padding: 72px 0 86px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .contact-links a {
    width: 100%;
  }

  .quick-access {
    margin-top: -28px;
  }

  .quick-access div {
    min-height: auto;
    padding: 18px;
  }

  .section,
  .contact-section {
    width: min(100% - 32px, 1180px);
    padding-block: 62px;
  }

  .service-card {
    min-height: auto;
    padding: 22px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .gallery-wide {
    grid-column: auto;
  }

  .doctor-content {
    padding: 48px 18px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .appointment-section {
    padding: 62px 16px;
  }

  .appointment-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    text-align: center;
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--mist);
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  margin: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(14, 37, 64, 0.07);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  margin: 14px 0 16px;
  color: #53657b;
  font-size: 1.04rem;
  line-height: 1.55;
}

.testimonial-card figcaption {
  color: var(--navy);
  font-weight: 850;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 4px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--navy);
  font-weight: 850;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 18px;
  color: #53657b;
}

/* ---------- Contact map ---------- */
.contact-map {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- Form validation feedback ---------- */
.field-error {
  display: none;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 750;
}

.appointment-form label.invalid input,
.appointment-form label.invalid select {
  border-color: var(--rose);
}

.appointment-form label.invalid .field-error,
.field-error:not(:empty) {
  display: block;
}

.form-status {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.form-status.success {
  color: var(--teal-dark);
}

.form-status.error {
  color: var(--rose);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@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;
  }

  .gallery figure:hover img,
  .btn:hover,
  .floating-btn:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Global keyboard focus ---------- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-item summary:focus-visible {
  outline-offset: -2px;
}

/* ---------- Emergency / privacy notices on the form ---------- */
.emergency-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  background: #fff5f7;
  border: 1px solid rgba(199, 70, 104, 0.35);
  border-left: 4px solid var(--rose);
  border-radius: 8px;
  color: #7a2740;
  font-size: 0.95rem;
  line-height: 1.5;
}

.emergency-note svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--rose);
  margin-top: 2px;
}

.appointment-form .consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #41506a;
  line-height: 1.5;
}

.appointment-form .consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--teal);
}

.appointment-form .consent a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
}

.appointment-form label.consent.invalid {
  color: var(--rose);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Legal / privacy page ---------- */
.legal-page {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 72px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-weight: 800;
}

.legal-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.legal-meta {
  margin: 0 0 26px;
  color: var(--muted);
  font-weight: 700;
}

.legal-page h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--navy);
}

.legal-page p {
  color: #41506a;
}

.legal-page a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
}

.legal-note {
  margin-top: 34px;
  padding: 16px 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #53657b;
}

/* ---------- 404 page ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100vh;
  width: min(620px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
}

.error-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
}

.error-copy {
  max-width: 460px;
  margin: 0;
  color: #53657b;
  font-size: 1.05rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}
