﻿
html { overflow: auto; }

.legal-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-page .navbar {
  opacity: 1;
  transition: none;
}

.legal-page #main-content {
  opacity: 1;
  transition: none;
}

.legal-hero {
  padding: 130px 24px 40px;
  border-bottom: 1px solid var(--gold-dim);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 10% 100%, rgba(201, 169, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: "Jost", sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.legal-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.legal-breadcrumb span {
  opacity: 0.4;
}

.legal-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.06em;
  line-height: 1;
}

.legal-title strong {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.legal-date {
  margin-top: 20px;
  font-family: "Jost", sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 228, 0.3);
}

.legal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1280px;
  min-height: 60vh;
}

.legal-nav {
  position: relative;
  top: 0;
  height: auto;
  padding: 28px 24px;
  border-bottom: 1px solid var(--gold-dim);
  overflow: hidden;
  align-self: start;
}

.legal-nav-label {
  font-family: "Jost", sans-serif;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-nav-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}

.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-nav a {
  font-family: "Jost", sans-serif;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-nav a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.legal-body {
  padding: 36px 24px 48px;
}

.legal-section {
  margin-bottom: 56px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  scroll-margin-top: 100px;
}

.legal-section h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 12px;
}

.legal-section h3 {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 32px 0 12px;
}

.legal-section p,
.legal-section li {
  font-family: "Jost", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 14px;
  max-width: 680px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 0;
  list-style: none;
}

.legal-section li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7em;
}

.legal-section a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.legal-highlight-box {
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 106, 0.04);
  margin: 20px 0 28px;
}

.legal-highlight-box p {
  margin: 0;
}

/* ===== Mobile-first responsive layers ===== */
@media (min-width: 600px) {
  .legal-hero {
    padding: 140px 36px 48px;
  }

  .legal-nav {
    padding: 32px 36px;
  }

  .legal-body {
    padding: 44px 36px 60px;
  }
}

@media (min-width: 768px) {
  .legal-hero {
    padding: 160px 60px 60px;
  }

  .legal-body {
    padding: 52px 60px 80px 64px;
  }
}

@media (min-width: 1024px) {
  .legal-content {
    grid-template-columns: 260px 1fr;
  }

  .legal-nav {
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    padding: 52px 36px 52px 60px;
    border-right: 1px solid var(--gold-dim);
    border-bottom: none;
    overflow-x: visible;
    overflow-y: auto;
  }

  .legal-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .legal-nav a {
    border: none;
    border-left: 1px solid transparent;
    padding: 7px 0;
    padding-left: 12px;
  }
}
