:root {
  color-scheme: dark;
  --navy: #03233d;
  --navy-deep: #021a2d;
  --teal: #2aa89b;
  --paper: #effffc;
  --body: #c4d2dc;
  --muted: #aab7c2;
  --line: rgba(240, 244, 248, 0.13);
  --panel: rgba(240, 244, 248, 0.045);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--navy);
  background-image: radial-gradient(
    circle,
    rgba(240, 244, 248, 0.07) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  color: var(--body);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
}

a:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(240, 244, 248, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 3.15rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 4px;
}

.back-link:hover {
  color: var(--paper);
}

main {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) 0 96px;
}

.page-intro {
  max-width: 820px;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--paper);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.version {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.blank {
  display: inline-block;
  min-width: 5.5rem;
  border-bottom: 1px solid rgba(170, 183, 194, 0.55);
  vertical-align: baseline;
}

article {
  max-width: 920px;
}

section {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

section:first-child {
  padding-top: 0;
  border-top: 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  margin: 32px 0 14px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

p,
li {
  font-size: 15px;
  line-height: 1.8;
}

p {
  margin: 0 0 18px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.35rem;
}

li + li {
  margin-top: 7px;
}

strong {
  color: var(--paper);
  font-weight: 700;
}

.summary {
  padding: 28px clamp(20px, 4vw, 36px);
  border: 1px solid rgba(42, 168, 155, 0.34);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(42, 168, 155, 0.14),
    rgba(240, 244, 248, 0.025)
  );
}

.summary h2 {
  margin-bottom: 16px;
}

.table-wrap {
  width: 100%;
  margin: 22px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blank-row td {
  height: 50px;
}

.contact-table {
  min-width: 760px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(240, 244, 248, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    height: 2.55rem;
  }

  .back-link {
    font-size: 12px;
  }

  main {
    width: min(100% - 32px, 1080px);
    padding-top: 48px;
  }

  .page-intro {
    margin-bottom: 40px;
  }

  section {
    padding: 30px 0;
  }

  p,
  li {
    font-size: 14px;
    line-height: 1.72;
  }

  .summary {
    padding: 22px 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

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

/* Legal pages built from Markdown (scripts/build-legal.mjs) */
.legal h2 {
  margin-top: 56px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.legal h3,
.legal h4 {
  scroll-margin-top: 24px;
}
.legal h4 {
  margin: 24px 0 10px;
  color: var(--paper);
  font-size: 15px;
}
.legal .summary {
  margin-bottom: 8px;
}
.legal .summary p:first-child strong {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal blockquote {
  margin: 0 0 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--panel);
}
.legal code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--paper);
  font-size: 0.92em;
}
.legal td p,
.legal td li {
  font-size: 14px;
}
.draft-note {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(240, 200, 80, 0.14);
  color: #f0d68a;
  font-size: 0.86em;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Deletion form */
.deletion-form {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin: 24px 0 8px;
  padding: 28px clamp(18px, 4vw, 32px);
  border: 1px solid rgba(42, 168, 155, 0.34);
  border-radius: 12px;
  background: var(--panel);
}
.deletion-form .field {
  display: grid;
  gap: 8px;
}
.deletion-form label {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.deletion-form .optional {
  color: var(--muted);
  font-weight: 400;
}
.deletion-form .hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.deletion-form input[type="tel"],
.deletion-form input[type="email"],
.deletion-form input[type="text"],
.deletion-form select,
.deletion-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 244, 248, 0.22);
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
}
.deletion-form textarea {
  resize: vertical;
}
.deletion-form input:focus-visible,
.deletion-form select:focus-visible,
.deletion-form textarea:focus-visible,
.deletion-form button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.deletion-form .phone {
  display: flex;
}
.deletion-form .prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(240, 244, 248, 0.22);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}
.deletion-form .phone input {
  border-radius: 0 8px 8px 0;
}
.deletion-form .checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.deletion-form .checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}
.deletion-form .checkbox label {
  font-weight: 400;
  line-height: 1.6;
}
.deletion-form .form-notice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.deletion-form button {
  justify-self: start;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--navy-deep);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
