:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #cfd8e3;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --notice: #fff7e8;
  --notice-line: #e8b85a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: white;
  background: #101828;
  border-radius: 6px;
  font-weight: 800;
}

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

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

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.legal-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--teal);
  border-radius: 6px;
  font-size: 12px;
}

.legal-main {
  padding: 52px 0 64px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-main h2 {
  margin: 38px 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-main h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.effective-date {
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 700;
}

.legal-notice {
  margin: 26px 0;
  padding: 14px 16px;
  background: var(--notice);
  border-left: 4px solid var(--notice-line);
}

.legal-main li + li {
  margin-top: 7px;
}

.contact-block {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  padding: 24px 0;
  color: var(--muted);
  background: #e9eef2;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 620px) {
  .legal-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .legal-main {
    padding-top: 36px;
  }
}

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