:root {
  --navy: #071225;
  --navy-soft: #0d1c32;
  --orange: #ed7d00;
  --orange-dark: #c96600;
  --white: #ffffff;
  --paper: #f8f5ef;
  --sand: #eee7dd;
  --blue-soft: #eaf0f5;
  --ink: #111827;
  --grey-dark: #4f5965;
  --grey: #747b84;
  --border: rgba(7, 18, 37, 0.13);
  --white-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 25px 70px rgba(7, 18, 37, 0.1);
  --container: 1240px;
  --header-height: 84px;
}

/* ======================================================
   RESET
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

p {
  color: var(--grey-dark);
}

.container {
  width: min(
    calc(100% - 44px),
    var(--container)
  );
  margin-inline: auto;
}

/* ======================================================
   GENERALES
====================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  background: var(--orange);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 170ms ease,
    color 170ms ease,
    background 170ms ease,
    border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--orange {
  background: var(--orange);
  color: var(--white);
}

.button--orange:hover {
  background: var(--orange-dark);
}

.button--outline-orange {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange-dark);
}

.button--outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ======================================================
   CABECERA
====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(7, 18, 37, 0.07);
  background: rgba(248, 245, 239, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.55rem;
}

.brand-text span {
  margin-top: 7px;
  color: var(--orange);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav > a:not(.button) {
  position: relative;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
}

.desktop-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transition: transform 170ms ease;
}

.desktop-nav > a:not(.button):hover::after {
  transform: scaleX(1);
}

.header-button {
  min-height: 46px;
  padding: 10px 18px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 1px;
  background: var(--navy);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ======================================================
   HERO
====================================================== */

.legal-hero {
  overflow: hidden;
  background: var(--paper);
}

.legal-hero-grid {
  display: grid;
  min-height: 470px;
  grid-template-columns: 1.08fr 0.92fr;
}

.legal-hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 78px 70px 78px 0;
}

.legal-hero-copy h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.legal-hero-copy p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-hero-visual {
  position: relative;
  display: flex;
  min-height: 470px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 25% 18%,
      rgba(237, 125, 0, 0.16),
      transparent 28%
    ),
    var(--navy);
  clip-path:
    polygon(
      18% 0,
      100% 0,
      100% 100%,
      0 100%
    );
}

.legal-hero-number {
  position: absolute;
  right: 38px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.1);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 8rem;
  font-weight: 600;
  line-height: 0.8;
}

.legal-symbol {
  position: relative;
  display: flex;
  width: 180px;
  height: 180px;
  align-items: center;
  justify-content: center;
}

.legal-symbol::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 3px;
  background: var(--orange);
  content: "";
}

.legal-symbol::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 130px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.legal-symbol strong {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 4.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.legal-symbol strong::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 145px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.legal-symbol strong::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background: var(--white);
  content: "";
}

.legal-symbol-top,
.legal-symbol-bottom {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.legal-symbol-top {
  top: 10px;
  right: 20px;
}

.legal-symbol-bottom {
  bottom: 10px;
  left: 21px;
}

/* ======================================================
   CONTENIDO LEGAL
====================================================== */

.legal-main {
  padding: 105px 0;
  background: var(--white);
}

.legal-layout {
  display: grid;
  grid-template-columns:
    minmax(230px, 0.34fr)
    minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.legal-index-title {
  display: block;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-index nav {
  display: grid;
}

.legal-index a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--grey-dark);
  font-size: 0.72rem;
  line-height: 1.4;
}

.legal-index a:last-child {
  border-bottom: 0;
}

.legal-index a:hover {
  color: var(--orange-dark);
}

.legal-index a span {
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 700;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  position: relative;
  padding: 0 0 70px 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 70px;
}

.legal-section-number {
  position: absolute;
  top: 7px;
  left: 0;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
}

.legal-section h2 {
  margin-bottom: 27px;
  color: var(--navy);
  font-size: clamp(2rem, 3.1vw, 3.2rem);
}

.legal-section p {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.82;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section p a {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-data {
  display: grid;
  margin: 36px 0 0;
  border-top: 1px solid var(--border);
}

.legal-data div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.legal-data dt {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
}

.legal-data dd {
  margin: 0;
  color: var(--grey-dark);
  font-size: 0.82rem;
}

.legal-data a:hover {
  color: var(--orange-dark);
}

.legal-update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 32px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
}

.legal-update span {
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-update strong {
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.15rem;
}

/* ======================================================
   FOOTER
====================================================== */

.site-footer {
  padding: 60px 0 22px;
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.15fr 0.75fr 0.9fr;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand strong {
  color: var(--white);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.2rem;
}

.footer-brand small {
  margin-top: 6px;
  color: var(--orange);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand-column p {
  max-width: 230px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.footer-grid nav,
.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-grid nav strong,
.footer-contact strong {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid nav a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
}

.footer-grid nav a:hover,
.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--white-border);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.67rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-bottom a,
.cookie-settings-link {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
}

.footer-bottom a:hover,
.footer-bottom a.is-current,
.cookie-settings-link:hover {
  color: var(--orange);
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* ======================================================
   AVISO DE COOKIES
====================================================== */

.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  max-width: 1180px;
  margin-inline: auto;
  padding: 24px 26px;
  border: 1px solid var(--white-border);
  background: var(--navy);
  box-shadow:
    0 22px 65px rgba(7, 18, 37, 0.3);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.cookie-notice__content {
  max-width: 810px;
}

.cookie-notice__title {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.25rem;
}

.cookie-notice__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.65;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-notice__button,
.cookie-notice__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 170ms ease,
    color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.cookie-notice__button:hover,
.cookie-notice__link:hover {
  transform: translateY(-1px);
}

.cookie-notice__button {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.cookie-notice__button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.cookie-notice__link {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.cookie-notice__link:hover {
  border-color: var(--orange);
  color: #ffad52;
}

.cookie-notice__button:focus-visible,
.cookie-notice__link:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 2px solid #ffad52;
  outline-offset: 3px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav > a:not(.button) {
    font-size: 0.74rem;
  }

  .legal-layout {
    gap: 55px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 1900;
    display: grid;
    gap: 4px;
    padding: 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(248, 245, 239, 0.99);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 220ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px 4px;
    font-weight: 600;
  }

  .mobile-nav .button {
    margin-top: 8px;
    color: var(--white);
  }

  .legal-hero-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero-copy {
    padding: 70px 0;
  }

  .legal-hero-visual {
    min-height: 370px;
    clip-path: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }

  .legal-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(
      calc(100% - 28px),
      var(--container)
    );
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-text strong {
    font-size: 1.25rem;
  }

  .brand-text span {
    font-size: 0.48rem;
  }

  .legal-hero-copy {
    padding: 54px 0;
  }

  .legal-hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .legal-hero-visual {
    min-height: 320px;
  }

  .legal-symbol {
    width: 140px;
    height: 140px;
  }

  .legal-symbol strong {
    font-size: 3.35rem;
  }

  .legal-main {
    padding: 78px 0;
  }

  .legal-index nav {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 0 0 54px 42px;
    margin-bottom: 54px;
  }

  .legal-section h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .legal-data div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-update {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-notice {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 22px 20px;
  }

  .cookie-notice__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie-notice__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-notice__button,
  .cookie-notice__link {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand-text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-column {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .cookie-notice {
    transition: none;
  }
}
/* ======================================================
   LISTAS DEL CONTENIDO LEGAL
====================================================== */

.legal-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 25px;
  color: var(--grey-dark);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  content: "—";
}
/* ======================================================
   POLÍTICA DE COOKIES
====================================================== */

.legal-status {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 17px;
  max-width: 820px;
  margin: 30px 0;
  padding: 25px 28px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
}

.legal-status__marker {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 6px rgba(237, 125, 0, 0.12);
}

.legal-status strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.9rem;
}

.legal-status p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.legal-table-wrapper {
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--white);
}

.legal-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--grey-dark);
  font-size: 0.76rem;
  line-height: 1.6;
}

.legal-table code {
  color: var(--orange-dark);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.72rem;
  word-break: break-word;
}

.legal-code {
  max-width: 820px;
  margin: 25px 0;
  padding: 22px 24px;
  overflow-x: auto;
  border-left: 3px solid var(--orange);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.7;
}

.legal-code code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}

.legal-note {
  max-width: 820px;
  margin: 30px 0;
  padding: 25px 28px;
  border: 1px solid var(--border);
  background: var(--blue-soft);
}

.legal-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.82rem;
}

.legal-note p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .legal-status,
  .legal-note {
    padding: 22px 20px;
  }

  .legal-table th,
  .legal-table td {
    padding: 15px 16px;
  }

  .legal-code {
    padding: 19px 18px;
    font-size: 0.72rem;
  }
}