:root {
  --bg: #fdf6eb; /* crema */
  --ink: #292727; /* casi negro */
  --ink-2: #3b3a3a;
  --muted: #b7b1a8;
  --red: #d41c1c;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

/* Base */
* {
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Utilities */
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-2);
  max-width: 75ch;
}

.red {
  color: var(--red);
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(0.95);
}

/* Header */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand span {
  color: var(--red);
}

.legal-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.legal-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  color: var(--ink);
}

.legal-nav a[aria-current="page"] {
  border-color: rgba(212, 28, 28, 0.35);
  box-shadow: 0 6px 20px rgba(212, 28, 28, 0.08);
}

/* Hero */
.legal-hero {
  padding: 56px 0 28px;
}

.legal-hero h1 {
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
  letter-spacing: 0.01em;
}

/* Content */
.legal-content {
  padding: 18px 0 64px;
}

.legal-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: clamp(18px, 2.2vw, 34px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.legal-card p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.05rem;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink);
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.legal-card li {
  margin: 8px 0;
  color: var(--ink-2);
}

.legal-card a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-box {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-box p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}
.legal-box p:last-child {
  margin-bottom: 0;
}
.legal-box a {
  color: #fff;
  text-decoration: underline;
}

/* Actions */
.legal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

/* Footer */
.legal-footer {
  background: #1f1f1f;
  color: #fff;
  padding: 28px 0 34px;
}

.legal-footer__inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand-mini {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-footer__muted {
  display: block;
  margin-top: 6px;
  color: #dcdcdc;
  font-size: 0.95rem;
}

.legal-footer__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #fff;
}

.legal-footer__links a {
  color: #fff;
  text-decoration: none;
}
.legal-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav a {
    padding: 7px 10px;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    text-align: center;
  }

  .legal-actions {
    justify-content: stretch;
  }
}
