:root {
  --ink: #0f1317;
  --ink-soft: #3c4a58;
  --muted: #7a8c9e;
  --paper: #ffffff;
  --mist: #f5f9f5;
  --line: rgba(11, 13, 17, 0.09);
  --green: #18a653;
  --green-deep: #117c41;
  --green-bright: #22c55e;
  --green-pale: rgba(24, 166, 83, 0.08);
  --night: #04050a;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 4px;
  --shadow: 0 18px 48px rgba(4, 5, 10, 0.08);
  --max: 1260px;
  --pad: clamp(24px, 4vw, 52px);
}

html {
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-weight: 300;
}

.skip-link {
  border: 2px solid var(--green);
  border-radius: 0;
  background: #fff;
  color: var(--night);
  font-weight: 500;
}

.site-header {
  flex: 0 0 auto;
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
}

.legal-page .brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--night);
  font-family: "Yago Display", "Noto Sans SC", sans-serif;
  font-size: 26px;
  letter-spacing: 0.2em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.legal-page .brand-dot {
  color: var(--green-bright);
}

.site-nav {
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  border-radius: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--green);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  padding: 9px 20px;
  border: 1px solid var(--green);
  color: var(--green);
}

.site-nav .nav-contact::after {
  display: none;
}

.site-nav .nav-contact:hover {
  background: var(--green);
  color: #fff;
}

.menu-toggle {
  border-radius: 0;
}

.legal-main {
  flex: 1 0 auto;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.legal-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -90px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 92px rgba(34, 197, 94, 0.025), 0 0 0 184px rgba(34, 197, 94, 0.015);
  pointer-events: none;
}

.legal-hero-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  margin-inline: auto;
  padding-block: clamp(62px, 8vw, 96px);
}

.t-eyebrow {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.t-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 200;
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.legal-hero h1 span {
  color: var(--green-bright);
  font-weight: 500;
}

.legal-hero-summary {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.9;
}

.t-tab-bar {
  display: none;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--night);
  scrollbar-width: none;
}

.t-tab-bar::-webkit-scrollbar {
  display: none;
}

.t-tab-bar-inner {
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  min-width: max-content;
  margin-inline: auto;
  display: flex;
  gap: 28px;
}

.tab-pill {
  padding: 15px 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
}

.tab-pill:hover {
  color: rgba(255, 255, 255, 0.84);
}

.tab-pill.active {
  border-bottom-color: var(--green-bright);
  color: var(--green-bright);
}

.t-body {
  width: min(calc(100% - (2 * var(--pad))), 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
}

.t-sidebar {
  position: sticky;
  top: 96px;
  padding: 46px 0;
}

.t-sidebar-label {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tab-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  list-style: none;
}

.tab-btn {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-btn:hover {
  background: var(--green-pale);
  color: var(--green);
}

.tab-btn.active {
  border-left-color: var(--green);
  background: var(--green-pale);
  color: var(--green);
  font-weight: 500;
}

.t-content {
  min-width: 0;
  max-width: 940px;
  padding: 46px 0 84px 54px;
  border-left: 1px solid var(--line);
}

.tab-panel[hidden],
.tab-panel:not(.active) {
  display: none;
}

.doc-head {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-head h2 {
  margin: 0 0 9px;
  color: var(--night);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.25;
}

.doc-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.035em;
  line-height: 1.75;
}

.doc-meta span {
  color: var(--green);
  font-weight: 500;
}

.doc-body {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.doc-body p {
  margin: 0 0 14px;
}

.doc-body h2,
.doc-body .level-1-heading {
  margin: 38px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.doc-body h2:first-child,
.doc-body .level-1-heading:first-child {
  margin-top: 0;
}

.doc-body h3,
.doc-body .level-2-heading {
  margin: 30px 0 13px;
  padding-left: 13px;
  border-left: 3px solid var(--green);
  color: var(--night);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.55;
}

.doc-body h4,
.doc-body .level-3-heading {
  margin: 23px 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.doc-body ul,
.doc-body ol {
  margin: 12px 0 18px 24px;
  padding: 0;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body .list-item,
.doc-body .list-item-ol {
  margin: 0 0 8px 28px;
}

.doc-body .list-item {
  position: relative;
}

.doc-body .list-item::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--green);
}

.doc-body .highlight {
  margin: 21px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: var(--green-pale);
  color: var(--ink-soft);
  font-size: 13px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  outline-offset: 3px;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(24, 166, 83, 0.32);
}

.doc-body table,
.doc-body .def-table {
  width: 100%;
  min-width: 680px;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 12px;
}

.doc-body th {
  padding: 11px 14px;
  background: var(--night);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-align: left;
  vertical-align: top;
}

.doc-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: left;
  vertical-align: top;
}

.doc-body tr:hover td {
  background: var(--mist);
}

.site-footer {
  flex: 0 0 auto;
  padding-top: 62px;
  background: var(--night);
}

.footer-top {
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.5fr));
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  max-width: 360px;
  line-height: 1.8;
}

.footer-col h2 {
  letter-spacing: 0.16em;
}

.footer-bottom {
  padding-bottom: 0;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 12px;
  }
}

@media (max-width: 920px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 0;
    font-size: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .t-tab-bar {
    display: block;
  }

  .t-body {
    display: block;
  }

  .t-sidebar {
    display: none;
  }

  .t-content {
    max-width: 900px;
    margin-inline: auto;
    padding: 38px 0 72px;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 20px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .legal-page .brand {
    font-size: 22px;
  }

  .legal-hero-shell {
    padding-block: 52px 58px;
  }

  .legal-hero::after {
    top: -80px;
    right: -210px;
    width: 380px;
    height: 380px;
  }

  .legal-hero h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .legal-hero-summary {
    font-size: 13px;
  }

  .t-tab-bar-inner {
    gap: 24px;
  }

  .t-content {
    padding-top: 32px;
  }

  .doc-head {
    margin-bottom: 28px;
  }

  .doc-body {
    font-size: 13px;
  }

  .doc-body table,
  .doc-body .def-table {
    min-width: 620px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .t-sidebar,
  .t-tab-bar {
    display: none !important;
  }

  .legal-hero {
    background: #fff !important;
    color: #000 !important;
  }

  .legal-hero::after {
    display: none;
  }

  .legal-hero-shell {
    width: 100%;
    padding: 20px 0 24px;
  }

  .legal-hero h1,
  .legal-hero h1 span,
  .t-eyebrow {
    color: #000 !important;
  }

  .legal-hero-summary {
    color: #444;
  }

  .t-body {
    width: 100%;
    display: block;
  }

  .t-content {
    max-width: none;
    padding: 24px 0;
    border: 0;
  }

  .table-scroll {
    overflow: visible;
    border: 0;
  }

  .doc-body table,
  .doc-body .def-table {
    min-width: 0;
    display: table;
  }
}
