/* ============================================================
   MIGO — Términos y Condiciones Styles
   ============================================================ */


/* ── FONTS ── */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}


/* ── BACK LINK (header) ── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--mint);
}

.back-link svg { flex-shrink: 0; }


/* ── BASE ── */

:root {
  --bg-deep:        #0F1613;
  --bg-base:        #1B221E;
  --bg-card:        #232D28;
  --bg-elevated:    #2A3530;
  --pink:           #E77292;
  --mint:           #B6F2DC;
  --mint-dark:      #608074;
  --blue:           #7AB6DA;
  --text-primary:   #E8F0EC;
  --text-secondary: #8FA898;
  --text-muted:     #5A7066;
  --border:         rgba(176, 230, 200, 0.08);
  --border-accent:  rgba(183, 242, 220, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}


/* ── HEADER ── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 22, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-accent);
  padding: 0 24px;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--mint); }

.version-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mint-dark);
  background: rgba(96, 128, 116, 0.15);
  border: 1px solid rgba(96, 128, 116, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
}


/* ── HERO ── */

.hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--pink);
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h1 .accent { color: var(--mint); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
}

.meta-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}


/* ── INTRO CARD ── */

.intro-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.intro-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 24px 28px;
  border-left: 3px solid var(--mint);
}

.intro-card-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ── TABLE OF CONTENTS ── */

.toc-wrapper {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.toc-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.toc-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.toc-item.toc-active {
  background: rgba(182, 242, 220, 0.08);
  border-color: rgba(182, 242, 220, 0.3);
  color: var(--mint);
}

.toc-item.toc-active .toc-num { color: var(--mint); }

.toc-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--mint-dark);
  min-width: 18px;
}


/* ── MAIN CONTENT ── */

main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(182, 242, 220, 0.1);
  border: 1px solid rgba(182, 242, 220, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  flex-shrink: 0;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mint);
  margin: 20px 0 10px;
  letter-spacing: -0.1px;
}

p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 12px;
}

p:last-child { margin-bottom: 0; }


/* ── LISTS ── */

ul.custom-list {
  list-style: none;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

ul.custom-list li {
  position: relative;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 12px 8px 28px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

ul.custom-list li::before {
  content: '›';
  position: absolute;
  left: 12px;
  top: 8px;
  color: var(--mint-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

ul.prohibited li::before {
  content: '✕';
  color: var(--pink);
  font-size: 11px;
  margin-top: 2px;
}


/* ── HIGHLIGHT CARDS ── */

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}

.highlight-card.pink {
  border-left: 3px solid var(--pink);
  background: rgba(231, 114, 146, 0.06);
}

.highlight-card.blue {
  border-left: 3px solid var(--blue);
  background: rgba(122, 182, 218, 0.06);
}

.highlight-card.mint {
  border-left: 3px solid var(--mint-dark);
  background: rgba(96, 128, 116, 0.08);
}

.highlight-card p   { font-size: 13px; margin: 0; }
.highlight-card strong { color: var(--text-primary); font-weight: 600; }


/* ── DATA TABLE ── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child  { border-radius: 0 8px 0 0; }

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}


/* ── RIGHTS GRID ── */

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.right-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.right-item .right-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
}

.right-item .right-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ── FOOTER ── */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-accent);
  background: var(--bg-deep);
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: clamp(90px, 14%, 160px);
  height: auto;
  opacity: 0.85;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}


/* ── SCROLL TO TOP ── */

#scrollTop {
  position: fixed;
  font-family: 'Space Grotesk', sans-serif;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  color: var(--mint);
  font-size: 16px;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── RESPONSIVE ── */

@media (max-width: 480px) {
  .toc-grid    { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  h1           { font-size: 26px; }
}
