@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #07111f;
  --midnight: #0a1020;
  --paper: #f6f4ef;
  --muted: #687084;
  --blue: #0a74d9;
  --teal: #19c6b5;
  --line: rgba(7, 17, 31, 0.12);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 0, rgba(25, 198, 181, 0.15), transparent 26rem),
    linear-gradient(180deg, #ffffff, var(--paper));
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
}

.legal-main,
.site-footer {
  width: calc(100% - 32px);
  max-width: 1060px;
  margin-inline: auto;
}

.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 12, 0.94);
  backdrop-filter: blur(16px);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: calc(100% - 32px);
  max-width: 1220px;
  min-height: 76px;
  margin: 0 auto;
  color: #ffffff;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

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

.brand span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.desktop-nav a,
.nav-group > a {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

.desktop-nav a:hover,
.nav-group:hover > a,
.nav-group:focus-within > a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 32, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown::before {
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  content: '';
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.nav-dropdown a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  min-height: 42px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 14px;
  color: #ffffff;
  font-weight: 900;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  float: right;
  content: '+';
}

.mobile-nav[open] summary::after {
  content: '-';
}

.mobile-nav nav {
  display: grid;
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
  background: rgba(10, 16, 32, 0.98);
}

.mobile-nav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 850;
}

.legal-hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.98;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding: 54px 0 88px;
}

.legal-nav {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 58px rgba(7, 17, 31, 0.08);
}

.legal-nav a {
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-nav a:hover {
  color: var(--ink);
  background: rgba(10, 116, 217, 0.08);
}

.legal-content {
  display: grid;
  gap: 34px;
}

.notice {
  border: 1px solid rgba(10, 116, 217, 0.18);
  border-radius: 22px;
  padding: 22px;
  color: #11345d;
  background: rgba(10, 116, 217, 0.08);
  line-height: 1.7;
}

section {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 58px rgba(7, 17, 31, 0.06);
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.15;
}

h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

p,
li {
  color: #243147;
  line-height: 1.78;
}

p {
  margin: 16px 0 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

th {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: #243147;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 82px);
  width: min(1220px, calc(100% - 32px));
  margin-bottom: 28px;
  padding: clamp(44px, 7vw, 78px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  background: var(--midnight);
}

.footer-logo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-weight: 900;
}

.footer-brand span {
  display: grid;
  gap: 2px;
  font-size: 1.38rem;
  line-height: 0.95;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-brand-panel {
  display: grid;
  align-content: start;
  gap: 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.footer-button {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
}

.footer-link-panel {
  display: grid;
  align-content: start;
  gap: 24px;
}

.footer-link-heading strong,
.footer-link-heading span {
  display: block;
}

.footer-link-heading strong {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.04;
}

.footer-link-heading span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-links a {
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 0 10px;
  color: #ffffff;
  font-weight: 900;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: calc(100% - 32px);
    max-width: 1220px;
    min-height: 72px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    min-width: 0;
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.64rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-nav {
    position: static;
  }

  .legal-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .legal-hero {
    padding: 58px 0 42px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.35rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  h2,
  h3,
  p,
  li {
    overflow-wrap: anywhere;
  }

  .legal-layout {
    padding-top: 38px;
  }
}
