:root {
  color-scheme: light;
  --legal-page: #f3f6f5;
  --legal-surface: #ffffff;
  --legal-brand: #00434a;
  --legal-brand-strong: #00363c;
  --legal-accent: #007f86;
  --legal-ink: #172126;
  --legal-muted: #5e6b70;
  --legal-border: #cdd8d6;
  --legal-warning: #9a3412;
  --legal-warning-bg: #fff7ed;
  --legal-warning-border: #fdba74;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--legal-page);
  color: var(--legal-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--legal-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--legal-brand);
}

a:focus-visible {
  outline: 3px solid #f5c842;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--legal-brand);
  font-weight: 700;
}

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

.legal-header {
  border-bottom: 4px solid #20c7c9;
  background: var(--legal-brand);
  color: #ffffff;
}

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.legal-brand img {
  display: block;
  width: 154px;
  height: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}

.legal-nav a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.legal-nav a[aria-current="page"] {
  text-decoration-thickness: 3px;
  text-decoration-color: #f5c842;
}

.legal-title-band {
  border-bottom: 1px solid var(--legal-border);
  background: var(--legal-surface);
}

.legal-title-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  max-width: 760px;
  font-size: 40px;
  font-weight: 760;
}

.legal-intro {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--legal-muted);
  font-size: 18px;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 22px;
  padding-right: 22px;
  border-right: 1px solid var(--legal-border);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

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

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

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

.legal-toc a:hover {
  color: var(--legal-brand);
  text-decoration: underline;
}

.legal-content {
  min-width: 0;
}

.draft-notice {
  margin: 0 0 32px;
  padding: 16px 18px;
  border: 1px solid var(--legal-warning-border);
  border-left: 5px solid var(--legal-warning);
  border-radius: 6px;
  background: var(--legal-warning-bg);
  color: #6b2c12;
}

.draft-notice strong {
  display: block;
  margin-bottom: 3px;
}

.legal-section {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--legal-border);
  scroll-margin-top: 24px;
}

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

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 14px;
  color: var(--legal-brand-strong);
  font-size: 24px;
}

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

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section p + ol,
.legal-section ul + p,
.legal-section ol + p,
.legal-section table + p {
  margin-top: 14px;
}

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

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

.legal-address {
  margin: 12px 0 0;
  font-style: normal;
}

.placeholder {
  display: inline;
  padding: 1px 4px;
  border-radius: 3px;
  background: #ffedd5;
  color: var(--legal-warning);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.legal-table-wrap {
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--legal-border);
  border-radius: 6px;
  background: var(--legal-surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--legal-border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #e8efed;
  color: var(--legal-brand-strong);
  font-weight: 750;
}

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

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

.legal-footer-inner {
  width: min(1080px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--legal-muted);
  font-size: 14px;
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 760px) {
  .legal-header-inner {
    min-height: 0;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .legal-title-inner {
    padding: 28px 0 26px;
  }

  h1 {
    font-size: 32px;
  }

  .legal-intro {
    font-size: 16px;
  }

  .legal-main {
    padding-top: 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .legal-toc {
    position: static;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--legal-border);
  }

  .legal-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .legal-toc li + li {
    margin-top: 0;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .legal-header-inner,
  .legal-title-inner,
  .legal-main,
  .legal-footer-inner {
    width: min(100% - 28px, 1080px);
  }

  .legal-brand img {
    width: 140px;
  }

  .legal-toc ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px;
  }
}

@media print {
  .skip-link,
  .legal-nav,
  .legal-toc,
  .legal-footer {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .legal-header {
    border-bottom: 2px solid #000000;
    background: #ffffff;
    color: #000000;
  }

  .legal-brand img {
    filter: invert(1);
  }

  .legal-main {
    display: block;
    width: 100%;
  }
}
