:root {
  --ink: #153b39;
  --violet: #1b5c58;
  --violet-deep: #ede8d0;
  --lilac: #d9f0ec;
  --cream: #f8fbfa;
  --mango: #c7e5d4;
  --pink: rgba(227, 6, 19, 1);
  --orange: #e98960;
  --mint: #88cfc1;
  --line: rgba(21, 59, 57, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--pink);
}

/* Header con el mismo estilo que index.html */
.site-header {
  width: min(1240px, calc(100% - 3rem));
  height: 100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: block;
  flex: 0 1 auto;
  width: 231px;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 231px;
  height: auto;
  border: 0;
  pointer-events: none;
  margin-left: 5rem;
}

.brand-logo+span,
.brand span {
  display: inline-block;
  color: var(--violet);
  font: 700 1.3rem/1 "DM Sans", sans-serif;
  /* letter-spacing: .08em; */
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  margin-left: 5rem;
}

.site-tagline {
  margin: 0;
  color: var(--violet);
  font-size: .72rem;
  font-weight: 500;
  /* letter-spacing: .08em; */
  text-transform: uppercase;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--pink);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--pink);
}

.button--small {
  min-height: 40px;
  padding: .55rem 1rem;
  font-size: 1rem;
  margin-right: 5rem;
}

@media (max-width: 800px) {
  .button--small {
    min-height: 40px;
    padding: .55rem 1rem;
    font-size: 1rem;
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-header {
    height: 76px;
    width: min(100% - 2rem, 1240px);
  }

  .site-tagline {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .brand-logo {
    margin: 0;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: .75rem;
  }

  .site-header .button--small {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: .76rem;
    padding-inline: .7rem;
  }
}

.legal-main {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.legal-eyebrow {
  margin: 0 0 .6rem;
  font-size: 1rem;
  /* letter-spacing: .22em; */
  text-transform: uppercase;
  color: var(--pink);
}

.legal-main h1 {
  margin: 0 0 .6rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  /* letter-spacing: -.02em; */
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: .75rem;
  /* letter-spacing: .08em; */
  text-transform: uppercase;
  color: var(--violet);
}

.legal-main h2 {
  margin: 2.4rem 0 .6rem;
  font-size: 1.35rem;
  line-height: 1.25;
  /* letter-spacing: -.01em; */
}

.legal-main h3 {
  margin: 1.6rem 0 .4rem;
  font-size: 1.05rem;
}

.legal-main p,
.legal-main li {
  margin: 0 0 .9rem;
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-main li {
  margin-bottom: .4rem;
}

.legal-card {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.legal-card--accent {
  background: var(--violet-deep);
  border-color: transparent;
}

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

.legal-table {
  width: 100%;
  margin: 0 0 1.2rem;
  border-collapse: collapse;
  font-size: .92rem;
}

.legal-table th,
.legal-table td {
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--lilac);
  font-size: .72rem;
  /* letter-spacing: .08em; */
  text-transform: uppercase;
}

/* Pie de página con el mismo estilo que index.html */
.site-footer {
  width: min(1240px, calc(100% - 3rem));
  margin: auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1rem;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: #6f6a7c;
  font-size: 1rem;
}

.footer__legal p {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1rem;
  width: 100%;
}

.footer__links a {
  font-size: 1rem;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.footer__links a:hover {
  color: var(--pink);
  text-decoration-color: currentColor;
}

.footer__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
}

.footer__credit a {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  color: var(--violet);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.footer__credit a:hover {
  color: var(--pink);
  text-decoration-color: currentColor;
}

.footer__credit-arrow {
  font-size: 1em;
}

.brand--footer {
  width: 231px;
}

.site-footer p {
  margin: 0;
  color: #6f6a7c;
}

.footer__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--violet);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--lilac);
  border-color: var(--violet);
}

.footer__top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .footer__row {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .footer__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 800px) {
  .site-footer {
    width: min(100% - 2rem, 1240px);
    padding: 1.5rem 0;
  }

  .footer__row {
    align-items: flex-start;
    flex-direction: column;
    gap: .85rem;
  }

  .footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }
}

.legal-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--orange);
  background: var(--violet-deep);
  font-size: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  .legal-main {
    width: calc(100% - 1.8rem);
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
