@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Noto+Serif:ital,wght@0,300;0,400;1,400&display=swap');

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-low: #f4f4f0;
  --primary: #6e5c46;
  --primary-dim: #62503b;
  --on-surface: #303330;
  --muted: #5d605c;
  --primary-container: #f8dec3;
  --tertiary-container: #fde7d3;
  --outline: rgba(176, 179, 174, 0.35);
  --radius-lg: 32px;
  --radius-md: 16px;
  --shadow-soft: 0 4px 28px rgba(48, 51, 48, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1c1b19;
    --surface-low: #242320;
    --primary: #e9d0b6;
    --primary-dim: #f8dec3;
    --on-surface: #e7e9e4;
    --muted: #b0b3ae;
    --primary-container: #4a3d2e;
    --tertiary-container: #3d342c;
    --outline: rgba(176, 179, 174, 0.2);
    --shadow-soft: 0 4px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--bg);
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere::before,
.atmosphere::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.atmosphere::before {
  width: min(300px, 88vw);
  height: min(300px, 88vw);
  top: -6%;
  right: -14%;
  background: var(--primary-container);
}

.atmosphere::after {
  width: min(340px, 92vw);
  height: min(340px, 92vw);
  bottom: -10%;
  left: -12%;
  background: var(--tertiary-container);
}

.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 56px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
  padding-top: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: clamp(72px, 18vw, 88px);
  height: clamp(72px, 18vw, 88px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--outline);
}

.brand-text {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 7vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
}

.tagline-upper {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 50%, transparent);
  font-weight: 500;
  margin: 0 0 12px;
}

.lead {
  margin: 0 auto 28px;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead--center {
  text-align: center;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 40px);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
  border: 1px solid color-mix(in srgb, var(--outline) 80%, transparent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.nav-list a:hover {
  background: color-mix(in srgb, var(--primary-container) 45%, var(--surface-low));
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

.nav-list a:active {
  transform: scale(0.99);
}

.nav-list a .chevron {
  font-size: 13px;
  opacity: 0.4;
  font-weight: 400;
}

.lang-divider {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--outline);
}

.lang-divider h2 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 48%, transparent);
  margin: 0 0 14px;
  font-weight: 500;
}

.site-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.page-top .back {
  font-size: 14px;
  font-weight: 500;
}

.page-top .back a {
  color: var(--primary-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-top .back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-top .mini-brand {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  font-size: 1.2rem;
}

.page-top .mini-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(48, 51, 48, 0.1);
}

@media (prefers-color-scheme: dark) {
  .page-top .mini-brand img {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  }
}

.legal h1 {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.65rem, 4vw, 2rem);
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.2;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

.legal h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dim);
  margin: 1.65rem 0 0.45rem;
}

.legal p,
.legal ul {
  margin: 0.5rem 0;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.35rem 0;
}

.legal a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--outline);
  margin: 2rem 0;
}

.legal .lang-es h2:first-of-type {
  margin-top: 0.5rem;
}

.sub-hero {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.5vw, 1.55rem);
  color: var(--primary);
  margin: 0 0 16px;
  line-height: 1.35;
}

.sub-copy {
  color: var(--muted);
  margin: 0 0 1rem;
}

.sub-copy:last-child {
  margin-bottom: 0;
}
