@import url("/theme.css?v=20261002-pure-black-1");

* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #667085;
  --line: #e2e7ee;
  --line-strong: #d0d7e2;
  --blue: #2b64ea;
  --blue-hover: #2458d4;
  --blue-soft: #eaf1ff;
  --green: #18794e;
  --green-soft: #eefbf4;
  --shadow: 0 18px 46px rgba(19, 33, 68, .08);
  color-scheme: light;
}

/* Dark palette: /theme.css */

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.site-header {
  height: 72px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 17px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-by {
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.header-actions > * {
  position: relative;
  border-radius: 0;
}

.header-actions > * + *::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  border-radius: 0;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.header-actions > :first-child {
  border-radius: 13px 0 0 13px;
}

.header-actions > :last-child {
  border-radius: 0 13px 13px 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-button .moon-icon {
  display: none;
}

html[data-theme="dark"] .theme-button .sun-icon {
  display: none;
}

html[data-theme="dark"] .theme-button .moon-icon {
  display: block;
}

.back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.back-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions > :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.back-link:hover {
  background: var(--surface-soft);
}

.back-link:disabled {
  cursor: default;
  opacity: .48;
  background: transparent;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-hero .lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.updated {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(19, 33, 68, .04);
}

.legal-nav a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.legal-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.legal-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.legal-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.legal-card h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

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

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul,
.legal-card ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card strong {
  color: var(--text);
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 13px;
  background: var(--blue-soft);
}

.notice p {
  color: var(--text);
}

.local-notice {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 25%, var(--line));
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.plan-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.plan-box span {
  color: var(--muted);
  font-size: 14px;
}

.contact-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.contact-box address {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.contact-box a,
.legal-card a {
  color: var(--blue);
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

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

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    white-space: nowrap;
  }

  .legal-nav a {
    flex: 0 0 auto;
  }

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

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .site-header-inner,
  .page,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .brand-by {
    display: none;
  }

  .back-link {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .back-link span {
    display: none;
  }

  .page {
    padding-top: 36px;
  }

  .legal-card {
    border-radius: 16px;
  }
}
