:root {
  --ink: #0c1831;
  --ink-soft: #42506a;
  --navy: #0b1734;
  --navy-2: #111f45;
  --blue: #2f6fed;
  --blue-bright: #5790ff;
  --violet: #7a67ef;
  --green: #1aaf7a;
  --paper: #f7f9fd;
  --surface: #ffffff;
  --line: #dce3ef;
  --line-soft: #e9eef6;
  --shadow: 0 24px 70px rgba(24, 43, 77, 0.13);
  --radius: 22px;
  color-scheme: light;
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 227, 239, 0.75);
  background: rgba(247, 249, 253, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #2f6fed, #715de5);
  box-shadow: 0 8px 24px rgba(73, 98, 219, 0.28);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #41506b;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
}

.nav-contact {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 15px;
  box-shadow: 0 4px 16px rgba(39, 55, 85, 0.05);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  min-height: 700px;
  padding-block: 86px 94px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cddaf2;
  border-radius: 999px;
  background: #eef4ff;
  padding: 7px 12px;
  color: #285bab;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.eyebrow-muted {
  border-color: var(--line);
  background: white;
  color: #65728a;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 175, 122, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(45px, 5.5vw, 69px);
  font-weight: 780;
  letter-spacing: -0.058em;
  line-height: 1.04;
}

h1 span {
  background: linear-gradient(100deg, #2d64dc 5%, #765de1 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 19px;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #2f6fed, #5d5ee9);
  color: white;
  box-shadow: 0 12px 30px rgba(54, 98, 221, 0.27);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #33415e;
  box-shadow: 0 6px 22px rgba(32, 49, 81, 0.06);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #b7c5dd;
  box-shadow: 0 10px 28px rgba(32, 49, 81, 0.1);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin: 0;
  padding: 0;
  color: #5a687e;
  font-size: 13px;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.mail-map {
  position: relative;
  border: 1px solid rgba(203, 214, 233, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.mail-map::before {
  position: absolute;
  z-index: -1;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 123, 247, 0.16), rgba(122, 103, 239, 0.05) 42%, transparent 72%);
  content: "";
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  color: #60708a;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #ecf9f3;
  padding: 5px 9px;
  color: #16865e;
  font-size: 9px;
}

.live-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.map-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.map-row-incoming .service-card {
  flex: 1 1 0;
}

.service-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: white;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(36, 53, 84, 0.06);
}

.service-card strong,
.service-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card strong {
  color: #21314e;
  font-size: 11px;
  line-height: 1.4;
}

.service-card small {
  color: #8994a7;
  font-size: 8px;
  line-height: 1.45;
}

.service-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-icon-forward {
  background: #f0edff;
  color: var(--violet);
}

.service-icon-gmail {
  background: #fff0ef;
  color: #e0544e;
}

.service-icon-send {
  background: #e8f8f2;
  color: var(--green);
  font-size: 11px;
}

.map-arrow {
  align-self: center;
  color: #b3bfd1;
  font-size: 14px;
}

.map-connector {
  display: flex;
  height: 38px;
  justify-content: flex-end;
  padding-right: 17%;
}

.map-connector span {
  width: 1px;
  background: linear-gradient(#bdc9dc, #7f95f3);
}

.map-connector-out {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 18%;
}

.map-connector-out span {
  background: linear-gradient(#7f95f3, #bdc9dc);
}

.mymails-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgba(103, 116, 232, 0.36);
  border-radius: 17px;
  background: linear-gradient(130deg, #11234b, #18204b 65%, #292354);
  padding: 17px;
  color: white;
  box-shadow: 0 16px 32px rgba(34, 49, 107, 0.2);
}

.mymails-card::after {
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(143, 132, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.brand-mark-large {
  z-index: 1;
  width: 44px;
  height: 44px;
}

.mymails-card > div:not(.mymails-orbit) {
  z-index: 1;
}

.mymails-card strong,
.mymails-card small {
  display: block;
}

.mymails-card strong {
  font-size: 14px;
}

.mymails-card small {
  color: #bfc8df;
  font-size: 9px;
}

.local-badge {
  z-index: 1;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  padding: 5px 9px;
  color: #cfd7f1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-row-outgoing {
  justify-content: center;
}

.map-row-outgoing .service-brevo {
  flex: 0 1 165px;
}

.service-card-wide {
  flex: 0 1 210px;
}

.signal-strip {
  border-block: 1px solid var(--line);
  background: white;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid > div {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 12px;
  padding: 20px 27px;
}

.signal-grid > div + div {
  border-left: 1px solid var(--line);
}

.signal-grid strong {
  color: var(--blue);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.signal-grid span {
  color: #5f6d84;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.section {
  padding-block: 118px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 54px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 760;
  letter-spacing: -0.048em;
  line-height: 1.12;
}

.section-heading > p:last-child,
.privacy-copy > p:not(.kicker),
.oauth-section > div:last-child > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 17px;
}

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

.step-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 28px;
  box-shadow: 0 12px 38px rgba(32, 49, 81, 0.06);
}

.step-card::after {
  position: absolute;
  right: -40px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid #edf1f7;
  border-radius: 50%;
  content: "";
}

.step-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #d3dae7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.step-blue {
  background: #eaf1ff;
  color: var(--blue);
}

.step-violet {
  background: #f0edff;
  color: var(--violet);
}

.step-green {
  background: #e8f8f2;
  color: var(--green);
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.step-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #65728a;
  font-size: 14px;
}

.privacy-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.privacy-band::before,
.privacy-band::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.privacy-band::before {
  top: -240px;
  right: -120px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(116, 133, 209, 0.13);
}

.privacy-band::after {
  right: 20%;
  bottom: -290px;
  width: 490px;
  height: 490px;
  background: radial-gradient(circle, rgba(81, 104, 218, 0.22), transparent 67%);
}

.privacy-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  padding-block: 100px;
}

.kicker-light {
  color: #8eabff;
}

.privacy-copy > p:not(.kicker) {
  color: #bdc8df;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(163, 184, 255, 0.4);
  padding-bottom: 3px;
  color: #d7e1ff;
  font-size: 14px;
  font-weight: 720;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.privacy-points {
  display: grid;
  gap: 14px;
}

.privacy-points > div {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(147, 164, 213, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.privacy-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(109, 130, 236, 0.16);
  color: #9db3ff;
  font-size: 18px;
  font-weight: 700;
}

.privacy-points p,
.privacy-points strong,
.privacy-points small {
  display: block;
  margin: 0;
}

.privacy-points strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.privacy-points small {
  color: #a9b6ce;
  font-size: 12px;
  line-height: 1.45;
}

.oauth-section {
  display: grid;
  grid-template-columns: 100px minmax(0, 760px);
  justify-content: center;
  gap: 38px;
  padding-block: 104px;
}

.oauth-badge {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid #d6e0f3;
  border-radius: 24px;
  background: linear-gradient(145deg, #edf3ff, white);
  box-shadow: 0 16px 38px rgba(44, 72, 128, 0.1);
}

.oauth-badge svg {
  width: 47px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.oauth-section h2 {
  font-size: clamp(31px, 3.5vw, 43px);
}

code {
  border: 1px solid #dce4f2;
  border-radius: 6px;
  background: #eef3fb;
  padding: 2px 6px;
  color: #2e5ca8;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.86em;
}

.limited-use {
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  font-size: 13px !important;
}

.limited-use a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: white;
  padding-block: 55px 24px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.brand-footer {
  margin-bottom: 13px;
}

.footer-grid p {
  margin: 0;
  color: #78859a;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: #516078;
  font-size: 13px;
  font-weight: 650;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  color: #919bae;
  font-size: 11px;
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.35);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 70px 84px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .mail-map {
    width: min(680px, 100%);
    margin-inline: auto;
  }

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

  .signal-grid > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .signal-grid > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .main-nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 54px;
    padding-block: 58px 70px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 55px);
  }

  .hero-lead {
    font-size: 16px;
  }

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

  .map-row-incoming {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-row-incoming .map-arrow {
    height: 10px;
    transform: rotate(90deg);
    text-align: center;
  }

  .map-connector {
    height: 27px;
    justify-content: center;
    padding: 0;
  }

  .mymails-card {
    padding: 14px;
  }

  .map-row-outgoing {
    align-items: center;
    flex-direction: column;
  }

  .map-row-outgoing .map-arrow {
    transform: rotate(90deg);
  }

  .map-row-outgoing .service-card {
    width: 100%;
    flex-basis: auto;
  }

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

  .signal-grid > div + div,
  .signal-grid > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-block: 82px;
  }

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

  .privacy-layout {
    padding-block: 78px;
  }

  .oauth-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Legal pages */
.legal-page {
  background: white;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0b1734, #152557 65%, #262154);
  color: white;
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.legal-hero::before {
  top: -300px;
  right: -80px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(158, 174, 235, 0.16);
}

.legal-hero::after {
  right: 15%;
  bottom: -320px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(82, 110, 236, 0.28), transparent 68%);
}

.legal-hero-terms {
  background: linear-gradient(130deg, #0d1a37, #20305c 65%, #163f48);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 64px 74px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: #bdc8df;
  font-size: 13px;
  font-weight: 650;
}

.back-link span {
  font-size: 17px;
}

.back-link:hover,
.back-link:focus-visible {
  color: white;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(43px, 6vw, 69px);
}

.legal-intro {
  max-width: 730px;
  margin-bottom: 24px;
  color: #c6d0e5;
  font-size: 18px;
}

.legal-date {
  margin: 0;
  color: #91a1bf;
  font-size: 12px;
  font-weight: 650;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  justify-content: center;
  gap: clamp(50px, 8vw, 105px);
  padding-block: 78px 120px;
}

.legal-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.legal-toc > p {
  margin-bottom: 15px;
  color: #8793a6;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: #647189;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--blue);
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.legal-summary > div {
  display: grid;
  gap: 3px;
  background: #f7f9fd;
  padding: 18px 20px;
}

.legal-summary strong {
  color: #8290a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-summary span {
  color: #2b3a58;
  font-size: 13px;
  font-weight: 680;
}

.legal-content > section {
  position: relative;
  scroll-margin-top: 112px;
  padding-bottom: 58px;
}

.legal-content > section + section {
  border-top: 1px solid var(--line-soft);
  padding-top: 58px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-bottom: 16px;
  border-radius: 7px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.05em;
}

.legal-content h2 {
  margin-bottom: 20px;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.legal-content p,
.legal-content li {
  color: #4f5e76;
  font-size: 15px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding-left: 22px;
}

.legal-content li::marker {
  color: var(--blue);
}

.legal-content a {
  color: #285fc8;
  font-weight: 660;
  text-decoration: underline;
  text-decoration-color: #b7c9ed;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #1e4faa;
  text-decoration-color: currentColor;
}

.legal-note {
  margin-top: 26px;
  border: 1px solid #d7e3f7;
  border-radius: 14px;
  background: #f1f6ff;
  padding: 20px;
}

.legal-note strong {
  color: #254f99;
  font-size: 14px;
}

.legal-note p {
  margin: 5px 0 0;
  color: #60708b;
  font-size: 13px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.service-list > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfd;
  padding: 18px;
}

.service-list strong {
  color: #253552;
  font-size: 14px;
}

.service-list p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, #eef3ff, #f7f9fd 42%, white 80%);
  padding: 24px;
}

.error-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  padding: 45px;
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card .brand {
  justify-content: center;
  margin-bottom: 28px;
}

.error-code {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.error-card h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 8vw, 46px);
}

.error-card > p:not(.error-code) {
  margin-bottom: 28px;
  color: #66738a;
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8faff;
    padding: 20px;
  }

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

@media (max-width: 560px) {
  .legal-hero-inner {
    padding-block: 44px 58px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .legal-layout {
    padding-block: 48px 84px;
  }

  .legal-toc nav,
  .legal-summary,
  .service-list {
    grid-template-columns: 1fr;
  }

  .error-card {
    padding: 34px 24px;
  }
}
