:root {
  --navy: #12233c;
  --navy-deep: #0c1a2c;
  --blue: #0b77f5;
  --blue-dark: #0a5fc4;
  --cream: #f7f3ec;
  --paper: #fdfbf6;
  --ink-soft: #4d5c6e;
  --muted: #5d6875;
  --line: rgba(18, 35, 60, 0.14);
  --wide: 1240px;
  --content: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--cream);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 119, 245, 0.45);
  outline-offset: 3px;
}

::selection {
  color: var(--cream);
  background: var(--navy);
}

h1,
h2,
h3 {
  margin: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  font-kerning: normal;
  letter-spacing: 0;
}

.wide-container,
.container {
  width: min(calc(100% - 48px), var(--wide));
  margin-inline: auto;
}

.container {
  max-width: var(--content);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 8px;
  color: var(--cream);
  background: var(--navy);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(18, 35, 60, 0.1);
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s ease;
}

.brand-link:hover {
  opacity: 0.76;
}

.brand-logo {
  width: 148px;
  height: 42px;
  object-fit: cover;
  object-position: center 45%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  padding: 7px 1px;
  color: var(--navy);
  background-image: linear-gradient(var(--blue), var(--blue));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.78;
  transition: color 0.25s ease, opacity 0.25s ease, background-size 0.35s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--blue);
  opacity: 1;
  background-size: 100% 2px;
}

.header-cta,
.mobile-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 19px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header-cta > span,
.mobile-whatsapp > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c26a;
  animation: pulse 2.6s ease-in-out infinite;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(11, 119, 245, 0.28);
  transform: translateY(-1px);
}

.legal-mobile-menu {
  display: none;
  margin-left: auto;
}

.legal-mobile-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(18, 35, 60, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  list-style: none;
  align-content: center;
  gap: 4px;
}

.legal-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.legal-mobile-menu summary > span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.legal-mobile-menu[open] summary > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.legal-mobile-menu[open] summary > span:nth-child(2) {
  opacity: 0;
}

.legal-mobile-menu[open] summary > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.legal-mobile-menu nav {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  display: grid;
  gap: 0;
  padding: 10px 24px 22px;
  border-top: 1px solid rgba(18, 35, 60, 0.08);
  border-bottom: 1px solid rgba(18, 35, 60, 0.1);
  background: rgba(247, 243, 236, 0.98);
  box-shadow: 0 18px 38px rgba(18, 35, 60, 0.1);
}

.legal-mobile-menu nav > a:not(.mobile-whatsapp) {
  padding: 13px 4px;
  border-bottom: 1px solid rgba(18, 35, 60, 0.08);
  font-weight: 600;
}

.mobile-whatsapp {
  justify-content: center;
  margin-top: 16px;
  border-radius: 8px;
}

.legal-hero {
  padding: 146px 0 64px;
  border-bottom: 1px solid rgba(18, 35, 60, 0.09);
  background: var(--cream);
}

.hero-copy {
  max-width: 860px;
}

.legal-hero-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 4px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--blue-dark);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--blue);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 13ch;
  color: var(--navy);
  font-family: "Newsreader", Georgia, serif;
  font-size: 4.75rem;
  font-weight: 500;
  line-height: 0.98;
}

.legal-icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 1px solid rgba(18, 35, 60, 0.09);
  border-radius: 20px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(18, 35, 60, 0.08);
}

.legal-icon-card svg {
  width: 31px;
  height: 31px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.updated {
  display: inline-flex;
  margin-top: 26px;
  padding: 7px 12px;
  border: 1px solid rgba(18, 35, 60, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(253, 251, 246, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 64px;
  align-items: start;
  padding: 92px 0 124px;
}

.legal-content {
  min-width: 0;
  max-width: 760px;
}

.legal-content section {
  scroll-margin-top: 96px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(18, 35, 60, 0.11);
}

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

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

.legal-content h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
}

.legal-content h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 1.3rem;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content strong {
  color: var(--navy);
}

.legal-content a {
  color: var(--blue-dark);
  border-bottom: 1px solid rgba(11, 119, 245, 0.28);
  font-weight: 600;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--blue);
  border-color: currentColor;
}

.legal-note {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid rgba(11, 119, 245, 0.18);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(11, 119, 245, 0.055);
}

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

.toc {
  position: sticky;
  top: 104px;
  padding: 20px 18px;
  border: 1px solid rgba(18, 35, 60, 0.12);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 14px rgba(18, 35, 60, 0.06);
}

.toc h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toc .toc-ico {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  counter-increment: none;
}

.toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.toc a::before {
  content: none;
}

.toc a:hover,
.toc a:focus-visible {
  background: rgba(18, 35, 60, 0.05);
  color: var(--navy);
}

.toc a[aria-current="true"] {
  background: rgba(11, 119, 245, 0.10);
  color: var(--blue-dark);
  font-weight: 600;
}

.toc-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 35, 60, 0.10);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.toc-top svg {
  width: 13px;
  height: 13px;
}

.toc-top:hover {
  color: var(--blue);
}

.site-footer {
  padding: 60px 0 36px;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  color: var(--cream);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 44px 72px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 11px;
  max-width: 360px;
}

.footer-brand img {
  width: 154px;
  height: 42px;
  margin-bottom: 3px;
  object-fit: cover;
  object-position: center 45%;
}

.footer-brand p {
  margin: 0 0 3px;
  color: rgba(247, 243, 236, 0.65);
  font-size: 0.84rem;
}

.footer-brand a,
.site-footer nav a {
  color: rgba(247, 243, 236, 0.76);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-brand a:hover,
.footer-brand a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #6faff8;
}

.site-footer nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer nav strong {
  color: rgba(247, 243, 236, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 236, 0.08);
  color: rgba(247, 243, 236, 0.52);
  font-size: 0.75rem;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 999px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-content {
    max-width: 820px;
  }

  .toc {
    display: block;
    position: static;
    order: -1;
    top: auto;
    margin: 0 0 8px;
    padding: 0;
    box-shadow: none;
  }

  .toc h2 {
    justify-content: space-between;
    margin: 0;
    padding: 16px 18px;
    cursor: pointer;
  }

  .toc h2::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .toc h2[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }

  .toc ol {
    padding: 6px 8px 10px;
    border-top: 1px solid rgba(18, 35, 60, 0.10);
  }

  .toc ol[hidden] {
    display: none;
  }

  .toc a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .toc-top {
    display: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .legal-mobile-menu {
    display: block;
  }

  .legal-hero h1 {
    font-size: 3.75rem;
  }

  .legal-hero-head {
    gap: 18px;
  }

  .legal-icon-card {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .wide-container,
  .container {
    width: min(calc(100% - 32px), var(--wide));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 132px;
    height: 38px;
  }

  .legal-mobile-menu nav {
    top: 70px;
    padding-inline: 16px;
  }

  .legal-hero {
    padding: 112px 0 48px;
  }

  .breadcrumb {
    margin-bottom: 22px;
  }

  .legal-hero h1 {
    font-size: 2.85rem;
  }

  .legal-hero-head {
    gap: 14px;
    align-items: flex-start;
  }

  .legal-icon-card {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 18px;
  }

  .legal-icon-card svg {
    width: 27px;
    height: 27px;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 0.96rem;
  }

  .legal-shell {
    padding: 56px 0 80px;
  }

  .legal-content section {
    padding: 28px 0;
  }

  .legal-content h2 {
    font-size: 1.65rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.94rem;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-bottom {
    margin-top: 36px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .legal-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .legal-icon-card {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 16px;
  }

  .legal-icon-card svg {
    width: 24px;
    height: 24px;
  }

  .legal-hero h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
