/* ============================================================
   MyCollection — legal.css
   Shared styles for privacy.html and terms.html
   ============================================================ */

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

:root {
  --accent:        #794aff;
  --accent-light:  #9b6fff;
  --bg:            #080810;
  --bg-2:          #0f0f1a;
  --bg-card:       #111120;
  --border:        rgba(121,74,255,.18);
  --border-subtle: rgba(255,255,255,.06);
  --text-primary:  #f0f0ff;
  --text-secondary:#9191b0;
  --text-muted:    #5a5a7a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-size: .875rem;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: .95rem;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-back {
  display: flex; align-items: center; gap: .4rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: .85rem; font-weight: 500;
  transition: color .2s;
}
.nav-back:hover { color: var(--accent-light); }

/* ── Layout ── */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Lang toggle ── */
.lang-toggle {
  display: flex; gap: .5rem; margin-bottom: 2.5rem;
}
.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: var(--font);
}
.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent-light);
}
.lang-section { display: none; }
.lang-section.active { display: block; }

/* ── Typography ── */
.page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.page-updated {
  color: var(--text-muted);
  font-size: .82rem;
  margin-bottom: 3rem;
}
h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin: 2.5rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border-subtle);
}
p { color: var(--text-secondary); margin-bottom: 1rem; font-size: .925rem; }
ul {
  color: var(--text-secondary);
  font-size: .925rem;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
ul li { margin-bottom: .35rem; }
a { color: var(--accent-light); text-decoration: underline; }
a:hover { color: #fff; }
strong { color: var(--text-primary); font-weight: 600; }

/* ── Language selector (dropdown — replaces 2-btn toggle) ── */
.lang-selector {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 2.5rem;
}
.lang-selector svg { color: var(--text-muted); flex-shrink: 0; }
#lang-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: .4rem 2rem .4rem .9rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .875rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239191b0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
}
#lang-select:focus { border-color: var(--accent); }
/* hide old 2-lang toggle */
.lang-toggle { display: none !important; }
.lang-section { display: block !important; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.legal-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem; min-width: 480px;
}
.legal-table th {
  background: var(--bg-2);
  color: var(--accent-light);
  font-weight: 600; text-align: left;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  color: var(--text-secondary);
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top; line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child { font-weight: 500; color: var(--text-primary); }
.legal-table a { white-space: nowrap; text-decoration: none; font-size: .8rem; }
.legal-table a:hover { text-decoration: underline; }

/* ── Subsection h3 ── */
h3 {
  font-size: .97rem; font-weight: 700;
  color: var(--text-primary);
  margin: 1.8rem 0 .65rem;
}

/* ── Step list ── */
.steps-list { list-style: none; padding: 0; counter-reset: step; margin-bottom: 1rem; }
.steps-list li {
  counter-increment: step;
  display: flex; gap: .75rem; margin-bottom: .6rem;
  align-items: flex-start;
  color: var(--text-secondary); font-size: .925rem;
}
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0; width: 1.5rem; height: 1.5rem;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}

/* ── FAQ ── */
.faq-item { margin-bottom: 1.4rem; }
.faq-q { color: var(--text-primary); font-weight: 600; font-size: .925rem; margin-bottom: .3rem; }
.faq-a { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; margin: 0; }

/* ── Method badge ── */
.method-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 50px;
  margin-bottom: .5rem; letter-spacing: .06em; text-transform: uppercase;
}
.method-recommended {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #1a6b3c; color: #7fff9a;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 50px;
  margin-bottom: .5rem; letter-spacing: .06em; text-transform: uppercase;
}

/* ── Legal note (bottom disclaimer) ── */
.legal-note {
  background: rgba(121,74,255,.07);
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted); font-size: .82rem;
  margin-top: 3rem; line-height: 1.6;
}

/* ── Contact box ── */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.contact-box p { margin: 0; }

/* ── Footer ── */
.page-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.page-footer p { margin: 0; font-size: .82rem; }
.page-footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.page-footer-links a {
  color: var(--text-muted); font-size: .82rem;
  text-decoration: none; transition: color .2s;
}
.page-footer-links a:hover { color: var(--accent-light); }
