/* ═══════════════════════════════════════════════════════════════
   PAGE.CSS — Shared styles for static/legal pages
   Covers: privacy-policy.html, terms.html
   ═══════════════════════════════════════════════════════════════ */

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

/* 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,8,8,0.98);
  z-index: 100;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--pink); }
.logo-mark { display: inline-flex; align-items: center; vertical-align: middle; }

.back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.back:hover { color: var(--white); border-color: var(--pink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  position: relative;
  text-decoration: none;
}
.nav-icon:hover {
  border-color: var(--pink);
  background: rgba(219,38,108,0.15);
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon:hover svg { stroke: var(--pink); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count.show { display: flex; }

/* ── HERO ── */
.hero {
  padding: 80px 48px 60px;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--pink);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
h1 em { font-style: italic; color: var(--pink); }
.hero p {
  font-size: 16px;
  color: var(--gray);
  max-width: 520px;
}

/* ── POLICY CONTENT ── */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.policy-section {
  margin-bottom: 48px;
}
.policy-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.policy-section-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--pink);
  text-transform: uppercase;
}
.policy-section-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
}
.policy-section p {
  font-size: 15px;
  color: #a8a39a;
  line-height: 1.8;
  margin-bottom: 12px;
}
.policy-section p:last-child {
  margin-bottom: 0;
}
.policy-section strong {
  color: var(--white);
  font-weight: 500;
}
.policy-section ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.policy-section ul li {
  font-size: 15px;
  color: #a8a39a;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}
.policy-section ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--pink);
  position: absolute;
  left: 4px;
  top: 12px;
}
.effective-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray2);
  letter-spacing: .1em;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}
.footer-logo span { color: var(--pink); }
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray2);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--pink); }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: var(--gray2); transition: color .2s; display: flex; align-items: center; }
.footer-social a:hover { color: var(--pink); }
.footer-ruo {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray2);
  letter-spacing: .1em;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--surface, #111);
  border: 1px solid var(--border, #222);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, border-color .3s, background .3s;
  z-index: 900;
  text-decoration: none;
  color: inherit;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  border-color: var(--pink, #db266c);
  background: rgba(219,38,108,0.08);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray, #888);
  transition: stroke .3s;
}
.back-to-top:hover svg { stroke: var(--pink, #db266c); }
/* Push up if WhatsApp float is present */
.whatsapp-float ~ .back-to-top { bottom: 90px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .hero, .policy-content { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .back-to-top { bottom: 24px; right: 24px; width: 40px; height: 40px; }
  .whatsapp-float ~ .back-to-top { bottom: 80px; }
}
