.legal-page .header-inner { gap: 16px; }
.legal-page nav a[aria-current="page"] { color: var(--gold); }
.legal-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #241526;
  border-bottom: 1px solid var(--line);
}
.legal-hero::before, .legal-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
}
.legal-hero::before { left: 34%; background: url('https://revoseo1.ams3.digitaloceanspaces.com/fallamania/portada/89ae09b4a0dca351/falla-noche.webp') center 54% / cover no-repeat; }
.legal-hero::after { background: linear-gradient(90deg, #241526 26%, #27172be8 52%, #24152669 100%), linear-gradient(0deg, #241526 0%, transparent 60%); }
.legal-hero .frame { padding-block: clamp(44px, 7vw, 100px); }
.legal-hero .kicker { margin-bottom: 14px; }
.legal-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 6.3vw, 6.4rem); line-height: .9; letter-spacing: -.055em; }
.legal-hero h1 em { letter-spacing: -.07em; }
.legal-lead { margin-top: 20px; max-width: 52ch; color: #f2dfe5; font-size: clamp(1rem, 2vw, 1.15rem); }

.legal-layout { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr); align-items: start; gap: clamp(26px, 5vw, 65px); padding-block: clamp(34px, 6vw, 78px); }
.legal-layout--narrow { width: min(100%, 1000px); margin-inline: auto; display: block; }
.legal-contents {
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #24172b;
  padding: 20px;
}
.legal-contents h2 { margin-bottom: 12px; font-size: 1.36rem; letter-spacing: normal; }
.legal-contents ol { margin: 0; padding-left: 1.35rem; color: #ecd2a4; }
.legal-contents li { padding: .28rem 0; }
.legal-contents a { color: var(--muted); font-size: .94rem; line-height: 1.25; text-decoration-thickness: 1px; text-decoration-color: #fcda7e70; text-underline-offset: .16em; }
.legal-contents a:hover { color: var(--gold); }
.legal-document { min-width: 0; overflow-wrap: break-word; border: 1px solid var(--line); border-radius: .7rem; background: #201426; padding: clamp(22px, 4.5vw, 62px); color: #ede0ed; }
.legal-document p { margin: .8rem 0; max-width: 72ch; }
.legal-document h2 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); letter-spacing: -.028em; line-height: 1.05; color: var(--ivory); text-wrap: initial; }
.legal-document h2 .legal-index { color: var(--gold); margin-right: .26em; }
.legal-document section { scroll-margin-top: 1rem; }
.legal-document > section, .legal-document > .legal-intro { margin-bottom: 25px; }
.legal-document > section:not(:first-child) { padding-top: 23px; border-top: 1px solid var(--line); }
.legal-document section:last-child { margin-bottom: 0; }
.legal-document a:not(.button) { color: var(--gold); text-underline-offset: .15em; }

.delete-panel { max-width: 1000px; }
.delete-panel > .deletion-methods { padding-top: 0; border-top: 0; }
.deletion-methods h2 { margin-bottom: 18px; }
.deletion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deletion-method {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: clamp(17px,3vw,28px);
  background: #332136;
  border: 1px solid #edbd7956;
  border-radius: .62rem;
}
.deletion-method h3 { margin-bottom: 3px; color: var(--gold); font-size: 1.6rem; line-height: 1.05; }
.deletion-method p { margin: .6rem 0; }
.deletion-method ol { margin: .55rem 0 1rem; padding-inline-start: 1.3rem; }
.deletion-method ol li + li { margin-top: .5rem; }
.deletion-method .button { margin-top: auto; }
.legal-document ul { padding-left: 1.45rem; }
.legal-document li + li { margin-top: .45rem; }
.legal-document .route-note { color: #dbc5df; }

@media (max-width: 760px) {
  .legal-hero::before { left: 15%; }
  .legal-hero::after { background: linear-gradient(90deg, #241526f2, #24152680), linear-gradient(0deg, #241526, transparent 70%); }
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .legal-contents { position: static; max-height: 12rem; padding: 16px 18px; }
  .legal-contents ol { column-count: 2; column-gap: 1.75rem; }
  .legal-contents li { break-inside: avoid; }
}
@media (max-width: 560px) {
  .deletion-grid { grid-template-columns: 1fr; }
  .legal-contents ol { column-count: 1; }
}
@media (max-width: 380px) {
  .legal-page .brand-mark { font-size: 1.55rem; }
}
