:root {
  --navy: #051429;
  --navy-2: #0b203b;
  --blue: #1565c0;
  --gold: #d4af37;
  --gold-light: #ead57f;
  --paper: #f4f6f8;
  --white: #ffffff;
  --ink: #152033;
  --muted: #5f6978;
  --line: #dce2e9;
  --shadow: 0 24px 65px -38px rgba(5, 20, 41, 0.55);
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 76px;
  background:
    radial-gradient(circle at 84% 10%, rgba(21, 101, 192, 0.65), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 18%;
  width: 46%;
  height: 1px;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.hero-inner,
.legal-shell,
.footer-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.legal-brand {
  display: inline-flex;
  width: 112px;
  height: 64px;
  padding: 3px 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 32px -22px rgba(0, 0, 0, 0.85);
}

.legal-brand img {
  max-width: 96px;
  max-height: 58px;
  object-fit: contain;
}

.eyebrow {
  margin: 42px 0 10px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  letter-spacing: -0.035em;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.legal-shell {
  position: relative;
  z-index: 1;
  margin-top: -32px;
  padding: 0 20px 76px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(220, 226, 233, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.legal-tabs a {
  flex: 1 0 auto;
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.legal-tabs a:hover,
.legal-tabs a:focus-visible,
.legal-tabs a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}

.legal-card {
  margin-bottom: 18px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.legal-card h3 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.identity-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.identity-item dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identity-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 750;
}

.notice {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #fff9e7;
  color: #4b442f;
}

.plain-list {
  padding-left: 22px;
}

.plain-list li {
  margin: 8px 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

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

th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.updated {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: #66520d;
  font-size: 0.78rem;
  font-weight: 800;
}

.back-home {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 850;
}

.back-home:hover,
.back-home:focus-visible {
  background: var(--gold-light);
}

.legal-footer {
  padding: 34px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--gold-light);
}

@media (max-width: 680px) {
  .legal-hero {
    padding: 18px 14px 64px;
  }

  .legal-brand {
    width: 104px;
    height: 60px;
    border-radius: 16px;
  }

  .eyebrow {
    margin-top: 34px;
  }

  .legal-shell {
    padding: 0 14px 58px;
  }

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

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

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

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