
.legal-page {
  background: var(--cream);
  color: var(--graphite);
}

.legal-hero {
  position: relative;
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 78% 10%, rgba(197, 161, 110, .22), transparent 34%),
    linear-gradient(135deg, #fbf8f2 0%, #efe3d2 100%);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(16, 16, 16, .08);
  pointer-events: none;
}

.legal-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 44px;
  align-items: end;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 82px);
  line-height: .96;
  font-weight: 400;
  letter-spacing: -.045em;
}

.legal-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.75;
}

.legal-hero__note {
  padding: 26px;
  border: 1px solid rgba(16, 16, 16, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(14px);
}

.legal-hero__note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--black);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-hero__note span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.legal-section {
  padding: 70px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 106px;
}

.legal-aside__box,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(16, 16, 16, .05);
}

.legal-aside__box {
  padding: 18px;
}

.legal-aside__title {
  margin-bottom: 12px;
  padding: 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-aside__nav {
  display: grid;
  gap: 4px;
}

.legal-aside__nav a {
  display: block;
  padding: 13px 12px;
  border-radius: 16px;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: .2s ease;
}

.legal-aside__nav a:hover {
  background: var(--black);
  color: var(--white);
}

.legal-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.legal-card {
  padding: 34px;
}

.legal-card--intro {
  background:
    radial-gradient(circle at 92% 0%, rgba(197, 161, 110, .16), transparent 30%),
    rgba(255, 255, 255, .82);
}

.legal-date {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-card h2 {
  margin: 0 0 18px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.035em;
}

.legal-card h3 {
  margin: 30px 0 12px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.legal-card p,
.legal-card li {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.78;
}

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

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

.legal-card ul,
.legal-card ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-card strong {
  color: var(--black);
}

.legal-doc section {
  padding: 28px 0;
  border-top: 1px solid rgba(16, 16, 16, .09);
}

.legal-doc section:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.legal-doc section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.3vw, 34px);
}

.legal-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-doc-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: .25s ease;
}

.legal-doc-card:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(16, 16, 16, .08);
  transform: translateY(-3px);
}

.legal-doc-card span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.legal-doc-card strong {
  display: block;
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 400;
}

.legal-doc-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.faq-group {
  display: grid;
  gap: 12px;
}

.faq-group h2 {
  margin: 18px 0 6px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 400;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
}

.faq-question {
  position: relative;
  width: 100%;
  min-height: 68px;
  padding: 18px 58px 18px 24px;
  border: 0;
  background: transparent;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.faq-question::before,
.faq-question::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
  transition: .22s ease;
}

.faq-question::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-service-grid,
.legal-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-service,
.legal-pay-grid div {
  min-height: 174px;
  padding: 22px;
  border: 1px solid rgba(16, 16, 16, .1);
  border-radius: 22px;
  background: var(--cream);
}

.legal-service span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.legal-service strong,
.legal-pay-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--black);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-service p,
.legal-pay-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.legal-service small {
  display: block;
  margin-top: 12px;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
}

.legal-note-card {
  background: var(--black);
  color: var(--white);
}

.legal-note-card strong,
.legal-note-card p {
  color: var(--white);
}

.legal-note-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .legal-hero__grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .legal-aside__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .legal-aside__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: rgba(255, 255, 255, .75);
  }

  .legal-service-grid,
  .legal-pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .legal-hero::before {
    inset: 12px;
  }

  .legal-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .legal-hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .legal-section {
    padding: 38px 0 70px;
  }

  .legal-card,
  .legal-aside__box {
    border-radius: 22px;
  }

  .legal-card {
    padding: 24px;
  }

  .legal-doc-grid,
  .legal-service-grid,
  .legal-pay-grid {
    grid-template-columns: 1fr;
  }

  .legal-doc-card {
    min-height: 190px;
  }

  .faq-question {
    min-height: 62px;
    padding: 16px 54px 16px 20px;
    font-size: 20px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }
}

/* responsive polish for legal pages */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.legal-page {
  width: 100%;
  overflow: hidden;
}

.legal-aside__nav,
.legal-doc-grid,
.legal-service-grid,
.legal-pay-grid,
.legal-card,
.legal-doc-card,
.faq-item {
  min-width: 0;
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 38px 0 30px;
  }

  .legal-hero__grid {
    display: block;
  }

  .legal-hero h1 {
    max-width: 340px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: .94;
    letter-spacing: -.045em;
  }

  .legal-hero p {
    max-width: 100%;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.62;
  }

  .legal-hero__note {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
  }

  .legal-section {
    padding: 22px 0 92px;
  }

  .legal-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .legal-aside {
    width: 100%;
    margin: 0;
  }

  .legal-aside__box {
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 14px 36px rgba(16, 16, 16, .05);
    overflow: hidden;
  }

  .legal-aside__title {
    display: none;
  }

  .legal-aside__nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .legal-aside__nav::-webkit-scrollbar {
    display: none;
  }

  .legal-aside__nav a {
    flex: 0 0 auto;
    max-width: 230px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(16, 16, 16, .1);
    border-radius: 999px;
    background: var(--cream);
    color: var(--black);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .legal-content {
    width: 100%;
    gap: 12px;
  }

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

  .legal-date {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .legal-card h2 {
    margin-bottom: 14px;
    font-size: clamp(27px, 8.8vw, 34px);
    line-height: 1.02;
  }

  .legal-card h3 {
    margin: 24px 0 10px;
    font-size: 23px;
    line-height: 1.12;
  }

  .legal-card p,
  .legal-card li {
    font-size: 14px;
    line-height: 1.68;
  }

  .legal-card ul,
  .legal-card ol {
    padding-left: 18px;
  }

  .legal-doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-doc-card {
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .legal-doc-card span {
    font-size: 23px;
  }

  .legal-doc-card strong {
    margin-top: 14px;
    font-size: 25px;
    line-height: 1.05;
  }

  .legal-doc-card small {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .faq-group {
    gap: 10px;
  }

  .faq-group h2 {
    font-size: 28px;
  }

  .faq-question {
    min-height: 58px;
    padding: 15px 50px 15px 18px;
    font-size: 19px;
  }

  .faq-question::before,
  .faq-question::after {
    right: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.62;
  }

  .legal-service-grid,
  .legal-pay-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-service,
  .legal-pay-grid div {
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .legal-service span {
    margin-bottom: 16px;
    font-size: 25px;
  }

  .legal-service p,
  .legal-pay-grid p {
    font-size: 13px;
    line-height: 1.5;
  }

  .lux-footer--wide {
    width: 100%;
    padding: 34px 0 calc(92px + env(safe-area-inset-bottom));
  }

  .lux-footer__inner--legal {
    width: min(100% - 24px, 1320px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .lux-footer__brand {
    width: 100%;
    max-width: none;
  }

  .lux-footer__links {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 10px;
  }

  .lux-footer__links a {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .legal-hero h1 {
    max-width: 300px;
    font-size: 38px;
  }

  .legal-card {
    padding: 18px;
  }

  .legal-doc-card {
    padding: 17px;
  }
}
