* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(10px);
  z-index: 10;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
}

.logo-text strong {
  display: block;
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.2;
}

/* NAV */

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav a {
  color: #f5f5f5;
  opacity: 0.85;
  transition: 0.3s ease;
}

.nav a:hover {
  color: #d8d8d8;
  opacity: 1;
}

/* HERO HOME */

.hero {
  min-height: 100vh;
  padding: 160px 7% 80px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.34), rgba(0,0,0,0.04)),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 760px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #d8d8d8;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero p {
  max-width: 620px;
  color: #d6d6d6;
  font-size: 18px;
}

/* BOTONES */

.buttons {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid #fff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.btn.primary {
  background: #fff;
  color: #111;
}

.btn.secondary {
  background: transparent;
  color: #fff;
}

.btn:hover {
  background: #d8d8d8;
  color: #111;
  border-color: #d8d8d8;
}

/* INTRO */

.intro {
  padding: 90px 7%;
  background: #f4f4f4;
  color: #111;
  text-align: center;
}

.intro h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.intro p {
  max-width: 850px;
  margin: 0 auto;
  color: #333;
  font-size: 18px;
}

/* SECCIONES GENERALES */

.section {
  padding: 90px 7%;
  background: #fff;
  color: #111;
}

.section.dark {
  background: #111;
  color: #fff;
}

.section-title {
  margin-bottom: 40px;
}

.section-title p {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #0b2533;
  font-size: 13px;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 42px;
  line-height: 1.1;
}

.section.dark .section-title p {
  color: #d8d8d8;
}

.section.dark .section-title h2 {
  color: #fff;
}

/* HOME: BLOQUE PORTFOLIO */

.home-portfolio-dark {
  background: #111;
  color: #fff;
}

.home-work-section {
  background: #111;
  color: #fff;
}

.home-work-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.home-work-cards-centered {
  max-width: 1100px;
  margin: 0 auto;
}

.home-card-block {
  display: block;
  color: #111;
}

.home-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.home-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.12) 40%,
    rgba(0,0,0,0.68) 100%
  );
  z-index: 1;
}

.home-card-image h3 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.home-card-block p {
  margin-top: 14px;
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.5;
}

.home-card-block:hover .home-card-image {
  transform: translateY(-6px);
}

/* CABECERA PÁGINAS INTERIORES */

.page-hero {
  padding: 120px 7% 45px;
  background: linear-gradient(135deg, #0b2533, #222221);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
}

.page-hero p {
  max-width: 760px;
  color: #dcdcdc;
  font-size: 18px;
}

/* TARJETAS DE CATEGORÍAS */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.category-card {
  background: #f4f4f4;
  color: #111;
  border: 1px solid #ddd;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  background: #e8e8e8;
}

.category-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #333, #777);
  background-size: cover;
  background-position: center;
}

.video-category-image {
  aspect-ratio: 16 / 9;
}

.category-content {
  padding: 24px;
}

.category-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.category-content p {
  color: #444;
}

/* TEXTO DE CONTEXTO EN GALERÍAS */

.gallery-context {
  max-width: 850px;
  margin-bottom: 40px;
}

.gallery-context p {
  color: #444;
  font-size: 18px;
}

/* ENLACES EN TEXTO */

.inline-link {
  color: #0b2533;
  border-bottom: 1px solid #0b2533;
  font-weight: 700;
  transition: 0.3s ease;
}

.inline-link:hover {
  color: #111;
  border-color: #111;
}

/* GALERÍA CUADRADA */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-card {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #333, #777);
  background-size: cover;
  background-position: center;
  filter: grayscale(10%);
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.photo-card:hover {
  transform: scale(1.02);
  filter: grayscale(0%);
}

/* GALERÍA TIPO FLICKR / MOSAICO */

.flickr-gallery {
  max-width: 1100px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 12px;
}

.flickr-item {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.flickr-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.flickr-item:hover img {
  transform: scale(1.025);
  opacity: 0.9;
}

/* BOTÓN FLICKR EN GALERÍAS */

.gallery-flickr-cta {
  margin-top: 46px;
  text-align: center;
}

.flickr-gallery-btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.flickr-gallery-btn:hover {
  background: #0b2533;
  border-color: #0b2533;
  color: #fff;
}

/* GALERÍA DE VÍDEO */

.video-gallery {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-lightbox-item,
.video-link-item {
  display: block;
  background: transparent;
  color: #111;
  overflow: visible;
  cursor: pointer;
}

.video-thumb-wrapper {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-link-item:hover .video-thumb-img,
.video-lightbox-item:hover .video-thumb-img {
  transform: scale(1.025);
  opacity: 0.9;
}

.play-icon {
  position: absolute;
  width: 74px;
  height: 74px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
  transition: 0.3s ease;
}

.video-link-item:hover .play-icon,
.video-lightbox-item:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}

.video-lightbox-item h3,
.video-link-item h3 {
  font-size: 18px;
  margin-top: 12px;
  color: #111;
  font-weight: 700;
  line-height: 1.3;
}

.video-lightbox-item p,
.video-link-item p {
  margin-top: 4px;
  color: #666;
  font-size: 15px;
}

/* LIGHTBOX GENERAL */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: calc(100vw - 220px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox iframe {
  width: min(1100px, calc(100vw - 220px));
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
  opacity: 0.85;
  transition: 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
  color: #d8d8d8;
}

body.no-scroll {
  overflow: hidden;
}

/* FLECHAS LIGHTBOX */

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 1000;
  transition: 0.3s ease;
  font-size: 0;
}

.lightbox-arrow::before {
  content: "";
  width: 22px;
  height: 22px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
}

.lightbox-prev {
  left: 34px;
}

.lightbox-next {
  right: 34px;
}

.lightbox-prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.lightbox-next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.lightbox-arrow:hover::before {
  border-color: #d8d8d8;
}

/* VÍDEO ANTIGUO / TARJETAS */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  background: #1d1d1d;
  padding: 24px;
  border: 1px solid #2f2f2f;
}

.video-thumb {
  height: 230px;
  background: linear-gradient(135deg, #0b2533, #222221);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 22px;
}

.video-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.video-card p {
  color: #cfcfcf;
}

/* SERVICIOS */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.services div {
  border-top: 1px solid #111;
  padding-top: 22px;
}

.services h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.services p {
  color: #444;
}

.section.dark .services div {
  border-top: 1px solid rgba(255,255,255,0.35);
}

.section.dark .services p {
  color: #cfcfcf;
}

/* INTRO SERVICIOS CON IMAGEN */

.services-intro-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.services-intro-text .section-title {
  margin-bottom: 28px;
}

.services-intro-text .gallery-context {
  margin-bottom: 0;
}

.services-main-image {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.20)),
    url("assets/servicios-produccion.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-self: end;
}

/* SOBRE MÍ */

.about {
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  background: #f4f4f4;
  color: #111;
  align-items: start;
}

.about h2 {
  font-size: 42px;
  margin-bottom: 24px;
}

.about p {
  margin-bottom: 18px;
  color: #333;
  font-size: 17px;
}

.about-image {
  width: 78%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  min-height: auto;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35)),
    url("assets/sobre-mi.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-self: start;
  justify-self: center;
}

/* BLOQUE CURRÍCULUM */

.cv-block {
  padding: 90px 7%;
  background: #f4f4f4;
  color: #111;
  text-align: center;
}

.cv-content {
  max-width: 760px;
  margin: 0 auto;
}

.cv-content h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cv-content p {
  color: #333;
  font-size: 18px;
  margin-bottom: 30px;
}

.cv-content .btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cv-content .btn.primary:hover {
  background: #0b2533;
  border-color: #0b2533;
  color: #fff;
}

/* CONTACTO */

.contact-block {
  padding: 100px 7%;
  text-align: center;
  background: linear-gradient(135deg, #0b2533, #222221);
  color: #fff;
}

.contact-block h2 {
  font-size: 42px;
  line-height: 1.12;
  margin-bottom: 20px;
}

.contact-block p {
  max-width: 720px;
  margin: 0 auto 34px;
  color: #e0e0e0;
  font-size: 18px;
}

.contact {
  padding: 100px 7%;
  text-align: center;
  background: linear-gradient(135deg, #0b2533, #222221);
  color: #fff;
}

.contact h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 34px;
  color: #e0e0e0;
  font-size: 18px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-links a {
  border: 1px solid #fff;
  padding: 12px 20px;
  transition: 0.3s ease;
}

.contact-links a:hover {
  background: #fff;
  color: #111;
}

/* HOME: CONTACTO CLARO */

.home-contact-light {
  background: #f4f4f4;
  color: #111;
}

.home-contact-light h2 {
  color: #111;
}

.home-contact-light p {
  color: #444;
}

.home-contact-light .btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.home-contact-light .btn.primary:hover {
  background: #0b2533;
  border-color: #0b2533;
  color: #fff;
}

/* PÁGINA CONTACTO */

.contact-page {
  background: #f4f4f4;
  color: #111;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-info-card p {
  color: #333;
  font-size: 18px;
  margin-bottom: 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.contact-details a {
  color: #111;
  border-bottom: 1px solid #111;
  width: fit-content;
  padding-bottom: 3px;
  transition: 0.3s ease;
}

.contact-details a:hover {
  color: #0b2533;
  border-color: #0b2533;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.contact-form {
  background: #fff;
  padding: 36px;
  border: 1px solid #ddd;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #111;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #111;
  background: #fff;
}

.contact-form .btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
  cursor: pointer;
}

.contact-form .btn.primary:hover {
  background: #0b2533;
  border-color: #0b2533;
}

/* FOOTER */

.footer {
  padding: 28px 7%;
  background: #050505;
  color: #aaa;
  font-size: 14px;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .flickr-gallery {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .header {
    position: static;
    flex-direction: column;
    gap: 18px;
    padding: 20px 7%;
  }

  .logo-img {
    height: 34px !important;
    max-height: 34px !important;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 90px 7%;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-hero {
    padding: 60px 7% 35px;
  }

  .home-work-cards {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .video-grid,
  .services,
  .about,
  .contact-layout,
  .services-intro-layout {
    grid-template-columns: 1fr;
  }

  .services-intro-layout {
    gap: 34px;
  }

  .services-main-image {
    max-width: 100%;
    justify-self: start;
  }

  .about-image {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    min-height: auto;
    justify-self: center;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-thumb {
    height: 210px;
  }

  .section-title h2,
  .intro h2,
  .about h2,
  .contact h2,
  .contact-block h2,
  .contact-info-card h2,
  .cv-content h2 {
    font-size: 32px;
  }

  .section,
  .intro,
  .about,
  .contact,
  .contact-block,
  .cv-block {
    padding: 70px 7%;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .flickr-gallery {
    column-count: 2;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 86vh;
  }

  .lightbox iframe {
    width: 94vw;
    max-height: 80vh;
  }

  .lightbox-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .logo-img {
    height: 30px !important;
    max-height: 30px !important;
  }

  .logo-text strong {
    font-size: 24px;
  }

  .logo-text span {
    font-size: 10px;
  }

  .buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 10px;
  }

  .section-title h2,
  .intro h2,
  .about h2,
  .contact-info-card h2 {
    line-height: 1.12;
  }

  .contact-block h2 {
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .contact-block p {
    line-height: 1.45;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .flickr-gallery {
    column-count: 1;
  }

  .gallery-flickr-cta {
    margin-top: 38px;
  }

  .flickr-gallery-btn {
    width: 100%;
    text-align: center;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

  .home-card-image {
    padding: 22px;
  }

  .home-card-image h3 {
    font-size: 26px;
  }

  .home-card-block p {
    font-size: 15px;
  }

  .play-icon {
    width: 62px;
    height: 62px;
  }

  .about-image {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
  }

  .cv-content h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  .cv-content p {
    line-height: 1.45;
  }

  .contact-form {
    padding: 22px;
  }

  .lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 40px;
  }
}/* =========================
   TEXTOS LEGALES
========================= */

.legal-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.62;
  transition: 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
}

.legal-page {
  background: #f4f4f1;
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  padding: 52px;
}

.legal-content h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-top: 38px;
  margin-bottom: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #444;
  font-size: 16px;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 16px 0 24px 22px;
  color: #444;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-update {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #777;
}

.legal-check {
  margin-top: 4px;
}

.legal-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
}

.legal-check input {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto;
}

.legal-check a,
.inline-link {
  color: #0b2533;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-check a:hover,
.inline-link:hover {
  opacity: 0.72;
}

@media (max-width: 900px) {
  .legal-content {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .legal-links {
    flex-direction: column;
    gap: 8px;
  }

  .legal-content {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .legal-content h2 {
    font-size: 24px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}