:root {
  --navy: #071b33;
  --deep-blue: #0b2a4a;
  --gold: #c9a24d;
  --light-gold: #e6c873;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbe3ec;
  --shadow: 0 18px 50px rgba(7, 27, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--deep-blue);
  text-decoration-color: rgba(201, 162, 77, 0.55);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 236, 0.86);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(145deg, var(--navy), var(--deep-blue));
  border: 1px solid rgba(201, 162, 77, 0.45);
  border-radius: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-header nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-header nav a[aria-current="page"],
.legal-header nav a:hover {
  color: var(--navy);
  background: #fff8e8;
  border-color: rgba(201, 162, 77, 0.32);
}

.legal-page {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 84px) 0;
}

.legal-hero {
  padding: clamp(34px, 6vw, 64px);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(7, 27, 51, 0.94), rgba(11, 42, 74, 0.96)),
    radial-gradient(circle at 15% 20%, rgba(230, 200, 115, 0.2), transparent 34%);
  border: 1px solid rgba(201, 162, 77, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--light-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2 {
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.legal-hero .updated {
  display: inline-flex;
  margin-top: 26px;
  padding: 8px 12px;
  color: var(--light-gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 200, 115, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
}

.legal-card,
.legal-contact {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(7, 27, 51, 0.05);
}

.legal-card h2,
.legal-contact h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.38rem, 3vw, 2rem);
}

.legal-card p,
.legal-contact p {
  margin: 0 0 14px;
}

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

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

li + li {
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

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

th {
  color: var(--navy);
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy);
}

.legal-footer p {
  margin: 0;
}

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

@media (max-width: 720px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header nav {
    width: 100%;
  }

  .legal-header nav a {
    flex: 1;
    justify-content: center;
  }

  .legal-page {
    width: min(100% - 28px, 980px);
  }

  .legal-hero,
  .legal-card,
  .legal-contact {
    border-radius: 8px;
  }
}
