@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

:root {
  --navy: #0c1526;
  --navy-mid: #152040;
  --navy-light: #1e2f57;
  --gold: #b8962e;
  --gold-light: #d4af5a;
  --gold-dim: #8a6e1e;
  --ivory: #f5f0e8;
  --ivory-warm: #ede8dc;
  --charcoal: #2c3040;
  --slate: #4a5068;
  --mist: #9aa0b8;
  --white: #ffffff;
  --off-white: #fafaf8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease-out);
  --t-mid: 0.35s var(--ease-out);
  --shadow-lift: 0 12px 40px rgba(12,21,38,0.18);
  --border-thin: 1px solid rgba(184,150,46,0.22);
  --max-w: 1240px;
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  color: var(--navy);
  background: var(--gold);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

.section-label {
  display: block;
  margin-bottom: .75rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .85rem 2.2rem;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: var(--t-mid);
}

.btn--gold {
  color: var(--navy);
  background: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,150,46,.3);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: rgba(12,21,38,.97);
  border-bottom: var(--border-thin);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.nav-logo__name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}

.nav-logo__tagline {
  color: var(--gold-light);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(184,150,46,.35);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ivory);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-mid);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.legal-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 5rem) 0 var(--space-xl);
  overflow: hidden;
  background: var(--navy);
}

.legal-hero__bg,
.legal-hero__overlay {
  position: absolute;
  inset: 0;
}

.legal-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.legal-hero__overlay {
  background: linear-gradient(120deg, rgba(12,21,38,.88), rgba(12,21,38,.42));
}

.legal-hero__content {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
}

.legal-hero p {
  max-width: 560px;
  color: rgba(245,240,232,.82);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.insights-section {
  padding: var(--space-xl) 0;
  background: var(--off-white);
}

.insights-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: var(--space-lg);
}

.insights-header h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.insights-header p {
  max-width: 560px;
  color: var(--slate);
  font-size: .95rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: var(--border-thin);
  background: var(--white);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.topic-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-mid);
}

.topic-card__image img,
.image-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  transition: transform .5s ease;
}

.topic-card:hover .topic-card__image img {
  transform: scale(1.04);
}

.topic-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.75rem 2rem;
}

.topic-card__cat {
  margin-bottom: .75rem;
  color: var(--gold);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.topic-card h3 {
  margin-bottom: .75rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
}

.topic-card p {
  margin-bottom: 1.25rem;
  color: var(--slate);
  font-size: .87rem;
  line-height: 1.7;
}

.topic-card__link {
  display: inline-flex;
  gap: .4rem;
  margin-top: auto;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: gap var(--t-fast);
}

.topic-card:hover .topic-card__link {
  gap: .75rem;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--navy);
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(184,150,46,.12) 0%, transparent 70%);
}

.article-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  color: var(--mist);
  font-size: .75rem;
}

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

.breadcrumb a:hover {
  color: var(--gold);
}

.article-title {
  max-width: 860px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.article-body {
  padding: var(--space-lg) 0;
  background: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(280px, 360px);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.document-content {
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.85;
}

.document-content p {
  margin-bottom: 1.5rem;
}

.document-content h2,
.document-content h3,
.document-content h4 {
  margin: 2rem 0 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
}

.document-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.document-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.document-content h4 {
  font-size: 1.05rem;
}

.document-content ul {
  margin: 0 0 1.5rem 1.25rem;
  list-style: disc;
}

.document-content li {
  margin-bottom: .65rem;
  color: var(--charcoal);
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 2rem;
  overflow: hidden;
  background: var(--navy-mid);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 1.5rem;
  border: var(--border-thin);
  background: var(--off-white);
}

.related .feature-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

.related h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.article-list {
  display: grid;
}

.article-groups {
  display: grid;
  gap: 1.5rem;
}

.article-group {
  padding-top: 1rem;
  border-top: 1px solid rgba(184,150,46,.18);
}

.article-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-group h3 {
  margin-bottom: .35rem;
  color: var(--gold-dim);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.article-row {
  display: grid;
  gap: .35rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(184,150,46,.16);
}

.article-row span:first-child {
  color: var(--navy);
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.45;
}

.article-row span:last-child {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-row:hover span:first-child {
  color: var(--gold-dim);
}

.empty {
  color: var(--slate);
  font-size: .9rem;
}

.site-footer {
  padding: var(--space-lg) 0 0;
  border-top: var(--border-thin);
  background: var(--navy);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-thin);
}

.footer__brand span {
  display: block;
  margin-bottom: .75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer__brand p {
  max-width: 280px;
  margin-top: 1rem;
  color: var(--mist);
  font-size: .88rem;
  line-height: 1.75;
}

.footer__col-title {
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer__links a,
.footer__contact-line a,
.footer__contact-line span {
  color: var(--mist);
  font-size: .88rem;
  transition: color var(--t-fast), padding-left var(--t-mid);
}

.footer__contact-line a:hover {
  color: var(--ivory);
}

.footer__links a:hover {
  color: var(--ivory);
  padding-left: 4px;
}

.footer__contact-line {
  margin-bottom: .85rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.footer__copy,
.footer__legal-links a {
  color: rgba(154,160,184,.66);
  font-size: .75rem;
}

.footer__legal-links a:hover {
  color: var(--ivory);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(12,21,38,.98);
    border-bottom: var(--border-thin);
    box-shadow: 0 16px 32px rgba(0,0,0,.25);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: .85rem 0;
  }

  .nav-cta {
    width: 100%;
    margin-top: 1rem;
  }

  .nav-cta .btn {
    width: 100%;
  }

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

  .content-layout {
    grid-template-columns: 1fr;
  }

  .related {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }

  .container {
    width: min(100% - 2rem, var(--max-w));
  }

  .legal-hero {
    min-height: 620px;
  }

  .insights-header {
    display: block;
  }

  .insights-header p {
    margin-top: 1rem;
  }

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .legal-hero h1 {
    font-size: 2.65rem;
  }

  .article-title {
    font-size: 2rem;
  }
}
