:root {
  --rose: #e91e63;
  --rose-soft: #ffd1e5;
  --blue: #6fb8ff;
  --gold: #ffd700;
  --ink: #171016;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.24);
  --panel: rgba(23, 16, 22, 0.88);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 159, 207, 0.88), rgba(111, 184, 255, 0.88)),
    url("./media/fotos/DSC00633.png") center top / cover fixed,
    #ff9fcf;
}

html::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(#000 0%, transparent 82%);
}

body.doc-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 960px);
  max-width: none;
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  padding: clamp(24px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--white);
  box-shadow: 0 28px 80px rgba(233, 30, 99, 0.22);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  backdrop-filter: blur(20px);
}

body.doc-content,
body.doc-content p,
body.doc-content li,
body.doc-content span,
body.doc-content td,
body.doc-content th,
body.doc-content h1,
body.doc-content h2,
body.doc-content h3,
body.doc-content h4,
body.doc-content h5,
body.doc-content h6 {
  color: var(--white);
  font-family: var(--font);
}

body.doc-content p,
body.doc-content li,
body.doc-content span,
body.doc-content td,
body.doc-content th {
  background: transparent;
  font-size: 1rem;
  line-height: 1.75;
}

body.doc-content p {
  margin: 0 0 1rem;
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

body.doc-content h1,
body.doc-content h2,
body.doc-content h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: left;
}

body.doc-content h1 {
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
}

body.doc-content h2 {
  margin: 2.6rem 0 1rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 850;
}

body.doc-content h3 {
  margin: 2rem 0 0.75rem;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

body.doc-content h1 span,
body.doc-content h2 span,
body.doc-content h3 span,
body.doc-content .legal-site-header + p span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.doc-content .legal-site-header + p {
  margin-bottom: 1.5rem;
  padding: 0;
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

body.doc-content .c38 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

body.doc-content ul,
body.doc-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

body.doc-content li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

body.doc-content a,
body.doc-content a span {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.doc-content a:hover,
body.doc-content a:hover span {
  color: var(--rose-soft);
}

body.doc-content table {
  display: table;
  width: 100%;
  margin: 1.5rem 0 2.5rem;
  border-collapse: collapse;
}

body.doc-content td,
body.doc-content th {
  width: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.legal-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 48px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.legal-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

body.doc-content .legal-site-brand,
body.doc-content .legal-site-brand span {
  color: var(--white);
}

body.doc-content .legal-site-brand span {
  font-size: inherit;
  line-height: inherit;
}

.legal-site-brand img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}

.legal-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.legal-site-nav a {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-updated {
  margin-top: 3rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.85rem !important;
}

.legal-site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-site-footer a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  body.doc-content {
    width: min(calc(100% - 20px), 960px);
    min-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 22px 18px 34px;
    border-radius: 8px;
  }

  .legal-site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .legal-site-nav {
    justify-content: flex-start;
  }

  body.doc-content table {
    display: block;
    overflow-x: auto;
  }
}

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