/* ─────────────────────────────────────────────────────────────
   Política de Privacidad — styles.css
   Catalina Miranda · catalinamiranda.pe/privacidad/
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Hardbob";
  src: url("../assets/fonts/Hardbop-Black.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Agenda One";
  src: url("../assets/fonts/agenda-one-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  --red:        #ed1c24;
  --yellow:     #ffac0b;
  --black:      #000000;
  --white:      #ffffff;
  --bg:         #ffffff;
  --muted:      #faf8f5;
  --muted-2:    #f2ede6;
  --text:       #111;
  --text-soft:  #555;
  --border:     rgba(0,0,0,.10);
  --shadow-sm:  0 2px 12px rgba(0,0,0,.05);

  --font-title: "Hardbob", system-ui, -apple-system, sans-serif;
  --font-body:  "Agenda One", system-ui, -apple-system, sans-serif;

  --radius:     14px;
  --radius-sm:  8px;
  --radius-pill:999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.micro { font-size: 12px; opacity: .7; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 18px; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 36px; width: auto; display: block; }
.header-back {
  font-size: 13px;
  color: var(--text);
  opacity: .6;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s;
  text-decoration: none;
}
.header-back:hover { opacity: 1; text-decoration: none; }

/* HERO */
.pp-hero {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--red);
}
.pp-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.pp-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: .3px;
  margin-bottom: 1rem;
}
.pp-hero__title em {
  font-style: normal;
  color: var(--yellow);
}
.pp-hero__meta {
  font-size: 13px;
  opacity: .6;
  letter-spacing: .3px;
}
.pp-hero__meta strong { opacity: 1; color: var(--white); }

/* LAYOUT */
.pp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  align-items: start;
}

/* TOC */
.pp-toc {
  position: sticky;
  top: calc(68px + 2rem);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pp-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.pp-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-toc__link {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  padding: 4px 6px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .12s, color .12s;
  line-height: 1.4;
}
.pp-toc__link:hover {
  background: var(--muted-2);
  color: var(--text);
  text-decoration: none;
}
.pp-toc__link.is-active {
  background: var(--red);
  color: var(--white);
}

/* SUMMARY */
.pp-summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--muted);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 2.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
.pp-summary__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.pp-summary strong { color: var(--text); }

/* SECTIONS */
.pp-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(68px + 1.5rem);
}
.pp-section__title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--black);
}
.pp-section__num {
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.pp-section__body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}
.pp-section__body p:last-child { margin-bottom: 0; }

.pp-section__body h3 {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 1.5rem 0 .6rem;
}

.pp-section__body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-section__body ul li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  color: var(--text);
}
.pp-section__body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 12px;
}

.pp-nota {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px !important;
  color: var(--text-soft) !important;
}

.pp-new-badge {
  display: inline-block;
  background: var(--yellow);
  color: #3a2000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 6px;
}

/* TABLES */
.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pp-table th,
.pp-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.pp-table thead th {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.pp-table tbody tr:last-child td { border-bottom: none; }
.pp-table tbody tr:nth-child(odd) { background: var(--muted); }
.pp-table tbody th {
  font-weight: 700;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: 160px;
  background: var(--muted-2);
}

/* RIGHTS GRID */
.pp-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.pp-right {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
}
.pp-right__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.pp-right strong { display: block; font-size: 13px; margin-bottom: 3px; color: var(--text); }
.pp-right p {
  font-size: 12px !important;
  color: var(--text-soft) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* FOOTER */
.pp-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: var(--muted);
}
.pp-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 780px) {
  .pp-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.5rem;
  }
  .pp-toc {
    position: static;
    margin-bottom: 2rem;
  }
  .pp-rights-grid {
    grid-template-columns: 1fr;
  }
  .pp-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .brand__logo { height: 32px; }
}

@media (max-width: 480px) {
  .pp-hero { padding: 2.5rem 0 2rem; }
}

/* PRINT */
@media print {
  .header, .pp-toc, .pp-footer, .pp-hero__meta { display: none !important; }
  .pp-layout { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .pp-section { page-break-inside: avoid; }
  .pp-hero { padding: 1rem 0; }
  a { color: var(--text); }
}