:root {
  color-scheme: dark;
  --bg: #061312;
  --surface: #0b1d1b;
  --surface-raised: #102a27;
  --surface-glow: #143833;
  --line: #1c3b36;
  --line-strong: #005d50;
  --primary: #00f4cc;
  --primary-dim: #00a88d;
  --coral: #ff7d66;
  --blue: #5d8dff;
  --amber: #ffb547;
  --text: #f4fffc;
  --text-muted: #9bb4af;
  --text-faint: #6f8782;
  --content: 1180px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--primary);
  color: #002b24;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(28, 59, 54, 0.72);
  background: rgba(6, 19, 18, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.language-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.language-control > span {
  color: var(--primary);
  font-size: 19px;
}

.language-control select {
  max-width: 125px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 21px;
  height: 1px;
  margin: auto;
  background: var(--text);
  content: "";
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100svh - 118px));
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image: url("assets/cipher-reef-logo.png");
  background-repeat: no-repeat;
  background-position: right max(4vw, calc((100vw - var(--content)) / 2)) center;
  background-size: min(47vw, 570px);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 18, 0.24);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 92vw);
  margin-left: max(24px, calc((100vw - var(--content)) / 2));
  padding: 70px 0 62px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 4px 30px #061312;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  text-shadow: 0 2px 15px var(--bg);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: #002b24;
}

.button-primary:hover {
  background: #66ffe5;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(6, 19, 18, 0.72);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--text-muted);
  font-size: 13px;
}

.trust-row span::before {
  margin-right: 8px;
  color: var(--primary);
  content: "✓";
}

.hero-note {
  position: absolute;
  right: max(24px, calc((100vw - var(--content)) / 2));
  bottom: 22px;
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--content);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.signal-strip > div {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  border-right: 1px solid var(--line);
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-strip span {
  margin-bottom: 5px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-strip strong {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
}

.section-band {
  padding: 112px 24px;
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.product-section {
  background: #081817;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.product-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.privacy-intro > p:not(.eyebrow),
.support-contact p {
  max-width: 670px;
  color: var(--text-muted);
  font-size: 18px;
}

.feature-list {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.feature-list h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.feature-list p {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
}

.phone {
  position: relative;
  width: 375px;
  min-height: 775px;
  padding: 16px 16px 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.phone-status {
  display: flex;
  height: 25px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
}

.app-heading {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
}

.app-heading > div {
  display: flex;
  flex-direction: column;
}

.app-heading strong {
  font-size: 17px;
}

.app-heading small,
.node-row small,
.protect-row small {
  color: var(--text-faint);
  font-size: 11px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 100px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 11px;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.reef-core,
.connection-row,
.node-row,
.telemetry,
.protect-row {
  border: 1px solid var(--line);
  background: var(--surface);
}

.reef-core {
  position: relative;
  height: 244px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 12px;
}

.reef-copy {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 16px;
  display: flex;
  width: 175px;
  flex-direction: column;
}

.reef-copy > small {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 10px;
}

.reef-copy > strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.reef-copy p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.key-chip {
  align-self: flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 9px;
}

.key-chip::before {
  margin-right: 6px;
  color: var(--primary);
  content: "●";
}

.reef-visual {
  position: absolute;
  top: 22px;
  right: -29px;
  width: 198px;
  height: 198px;
}

.reef-field {
  position: absolute;
  inset: 0;
  width: 198px;
  height: 198px;
}

.reef-lock {
  position: absolute;
  top: 51px;
  left: 66px;
  width: 64px;
  height: 72px;
}

.reef-footer {
  position: absolute;
  bottom: 19px;
  left: 16px;
  display: flex;
  gap: 7px;
  color: var(--text-faint);
  font-size: 10px;
}

.connection-row {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.connection-row strong {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.node-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
}

.node-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.node-row strong {
  font-size: 14px;
}

.node-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 21px;
}

.phone > h3 {
  margin: 16px 0 10px;
  font-size: 15px;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 56px;
  padding: 8px 0;
  border-radius: 12px;
}

.telemetry div {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.telemetry div:last-child {
  border-right: 0;
}

.telemetry small {
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 9px;
}

.telemetry strong {
  font-size: 12px;
}

.telemetry .safe {
  color: var(--primary);
}

.protect-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  min-height: 56px;
  align-items: center;
  margin-top: 14px;
  border-color: var(--primary-dim);
  border-radius: 12px;
}

.protect-row img {
  width: 48px;
  height: 48px;
}

.protect-row div {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}

.protect-row strong {
  font-size: 12px;
}

.network-section {
  overflow: hidden;
  background: #071110;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 80px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -45px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  margin-bottom: 4px;
}

.route-map {
  position: relative;
  height: 510px;
  margin-top: 70px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
}

.route-map::after {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 16, 0.55);
  content: "";
}

.route-line {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--primary-dim);
  border-radius: 50%;
}

.route-line-one {
  top: 80px;
  left: 12%;
  width: 72%;
  height: 320px;
}

.route-line-two {
  top: 135px;
  left: 30%;
  width: 58%;
  height: 250px;
  border-color: var(--blue);
}

.route,
.node {
  position: absolute;
  z-index: 2;
  background: var(--surface);
}

.route {
  top: 208px;
  left: 42%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-width: 168px;
  padding: 14px 18px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 244, 204, 0.16);
}

.route i {
  grid-row: 1 / 3;
  width: 11px;
  height: 11px;
  align-self: center;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.route span {
  color: var(--primary);
  font-size: 11px;
}

.route strong {
  font-size: 14px;
}

.node {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.node > span {
  display: grid;
  width: 46px;
  height: 34px;
  place-items: center;
  background: var(--surface-raised);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.node > div {
  display: flex;
  flex-direction: column;
}

.node strong {
  font-size: 14px;
}

.node small {
  color: var(--text-faint);
  font-size: 11px;
}

.node-sg { top: 54px; left: 8%; }
.node-jp { top: 52px; right: 7%; }
.node-ca { top: 220px; left: 4%; }
.node-fr { right: 4%; bottom: 47px; }
.node-gb { bottom: 46px; left: 19%; }

.privacy-section {
  background: var(--surface);
}

.privacy-section .section-inner {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(60px, 10vw, 140px);
}

.privacy-intro h2 {
  color: var(--primary);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--primary-dim);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.text-button:hover {
  color: var(--primary);
}

.data-ledger {
  border: 1px solid var(--line);
  background: var(--bg);
}

.ledger-heading {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.ledger-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.ledger-heading strong {
  color: var(--text);
  font-size: 18px;
}

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

.ledger-column {
  min-width: 0;
  padding: 24px;
}

.ledger-column:first-child {
  border-right: 1px solid var(--line);
}

.ledger-column h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 15px;
}

.ledger-column h3 > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.ledger-no h3 {
  color: var(--coral);
}

.ledger-yes h3 {
  color: var(--primary);
}

.ledger-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-column li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(28, 59, 54, 0.65);
  color: var(--text-muted);
  font-size: 13px;
}

.ledger-column li:last-child {
  border-bottom: 0;
}

.ledger-note {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
}

.support-section {
  background: var(--coral);
  color: #26100c;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: end;
}

.support-section .eyebrow {
  color: #56231a;
}

.support-section h2 {
  margin: 0;
}

.support-contact p {
  color: #56231a;
}

.support-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 2px solid #26100c;
  font-size: 20px;
  font-weight: 750;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--content);
  min-height: 120px;
  margin: 0 auto;
  padding: 24px;
  color: var(--text-faint);
  font-size: 12px;
}

.footer-brand {
  color: var(--text);
}

footer p {
  margin: 0;
  text-align: center;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

footer button,
footer a {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

footer button:hover,
footer a:hover {
  color: var(--primary);
}

.legal-page {
  background: #081817;
}

.legal-page .site-header {
  grid-template-columns: 1fr auto 1fr;
}

.legal-page .language-control {
  justify-self: end;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.legal-nav a {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--primary);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 80px;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 112px 0 72px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(50px, 7vw, 88px);
}

.legal-lead {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: 20px;
}

.legal-meta {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.legal-meta dt {
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.legal-meta a {
  color: var(--primary);
}

.legal-disclosure,
.terms-summary {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.legal-disclosure > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.legal-disclosure .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -48px;
}

.legal-disclosure h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
}

.legal-disclosure > div:first-child > p:last-child {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 18px;
}

.legal-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.legal-disclosure-grid article {
  padding: 28px;
}

.legal-disclosure-grid article + article {
  border-left: 1px solid var(--line);
}

.legal-disclosure-grid h3 {
  margin-bottom: 18px;
  font-size: 16px;
}

.disclosure-no h3 {
  color: var(--coral);
}

.disclosure-yes h3 {
  color: var(--primary);
}

.legal-disclosure-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-disclosure-grid li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.legal-disclosure-grid li:last-child {
  border-bottom: 0;
}

.disclosure-no li::before,
.disclosure-yes li::before {
  display: inline-block;
  width: 20px;
  font-weight: 700;
}

.disclosure-no li::before {
  color: var(--coral);
  content: "×";
}

.disclosure-yes li::before {
  color: var(--primary);
  content: "✓";
}

.terms-summary > .eyebrow {
  margin-bottom: 30px;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terms-summary-grid article {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.terms-summary-grid article:last-child {
  border-right: 0;
}

.terms-summary-grid span {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.terms-summary-grid h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.terms-summary-grid p {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(60px, 10vw, 150px);
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal-layout aside {
  align-self: start;
  position: sticky;
  top: 104px;
}

.legal-layout aside > p {
  margin-bottom: 16px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
}

#legal-toc {
  display: flex;
  flex-direction: column;
}

#legal-toc a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

#legal-toc a:hover {
  color: var(--primary);
}

.legal-content section {
  scroll-margin-top: 96px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-content section + section {
  padding-top: 42px;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: 25px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 8, 7, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--bg);
}

.dialog-header {
  border-bottom: 1px solid var(--line);
}

.dialog-header .eyebrow {
  margin-bottom: 6px;
}

.dialog-header h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.dialog-header p:last-child {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.icon-button:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

.policy-content {
  max-height: calc(100svh - 260px);
  padding: 28px;
  overflow-y: auto;
}

.policy-content section {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.policy-content section + section {
  padding-top: 24px;
}

.policy-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  font-size: 14px;
}

.policy-content ul {
  padding-left: 20px;
}

.dialog-footer {
  border-top: 1px solid var(--line);
}

.dialog-footer > a {
  color: var(--primary);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .menu-button {
    display: block;
    grid-column: 3;
  }

  .language-control {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .product-layout,
  .privacy-section .section-inner,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .phone {
    justify-self: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .support-layout {
    gap: 28px;
  }

  .legal-page .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .legal-nav {
    gap: 16px;
  }

  .legal-nav a:last-child {
    display: none;
  }

  .legal-hero,
  .legal-disclosure > div:first-child {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-disclosure .eyebrow {
    grid-column: auto;
    margin-bottom: -18px;
  }

  .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .language-control > span {
    display: none;
  }

  .language-control select {
    width: 96px;
  }

  .hero {
    min-height: min(660px, calc(100svh - 88px));
    align-items: flex-end;
    background-position: right -100px top 24px;
    background-size: 420px;
  }

  .hero::before {
    background: rgba(6, 19, 18, 0.52);
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 220px 20px 42px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-note {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    display: none;
  }

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

  .signal-strip > div {
    min-height: 76px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .section-band {
    padding: 78px 18px;
  }

  .product-layout {
    gap: 48px;
  }

  .phone {
    width: min(375px, calc(100vw - 36px));
    min-height: 740px;
    border-radius: 24px;
  }

  .reef-visual {
    right: -52px;
  }

  .route-map {
    height: 610px;
  }

  .route {
    top: 270px;
    left: 23%;
  }

  .node {
    min-width: 150px;
  }

  .node-sg { top: 40px; left: 0; }
  .node-jp { top: 130px; right: 0; }
  .node-ca { top: 365px; left: 0; }
  .node-fr { right: 0; bottom: 40px; }
  .node-gb { bottom: 115px; left: 10%; }

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

  .ledger-column:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-contact a {
    font-size: 18px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 32px 18px;
    text-align: center;
  }

  .footer-brand,
  footer > div {
    justify-content: center;
  }

  .footer-brand span {
    display: inline;
  }

  .legal-page .site-header {
    grid-template-columns: auto 1fr;
  }

  .legal-page .language-control {
    grid-column: 2;
    justify-self: end;
  }

  .legal-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    justify-content: flex-start;
    gap: 24px;
    height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .legal-nav a {
    font-size: 13px;
  }

  .legal-hero {
    width: calc(100% - 36px);
    padding: 98px 0 58px;
  }

  .legal-hero h1 {
    font-size: 48px;
  }

  .legal-lead {
    font-size: 17px;
  }

  .legal-disclosure,
  .terms-summary,
  .legal-layout {
    width: calc(100% - 36px);
  }

  .legal-disclosure,
  .terms-summary {
    padding: 58px 0;
  }

  .legal-disclosure-grid,
  .terms-summary-grid {
    grid-template-columns: 1fr;
  }

  .legal-disclosure-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .terms-summary-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .terms-summary-grid article:last-child {
    border-bottom: 0;
  }

  .legal-layout {
    display: block;
    padding: 58px 0 80px;
  }

  .legal-layout aside {
    position: static;
    margin-bottom: 52px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .dialog-header,
  .dialog-footer {
    padding: 18px;
  }

  .dialog-header h2 {
    font-size: 24px;
  }

  .policy-content {
    max-height: calc(100svh - 235px);
    padding: 22px 18px;
  }

  .dialog-footer {
    gap: 12px;
  }

  .dialog-footer > a {
    overflow-wrap: anywhere;
  }
}

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

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