/* ============================================================
   Maki — privacy.css
   Privacy policy page
   ============================================================ */

/* ── Back link in nav ── */
.nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.nav-back:hover {
  color: var(--purple);
  border-color: var(--purple-line);
  background: var(--purple-tint);
}

/* ── Page header ── */
.page-header {
  position: relative;
  padding: 150px 28px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 55% 65% at 50% 0%, rgba(136, 45, 255, 0.06), transparent 70%),
    var(--paper);
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 15%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.page-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--purple);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ink-3);
}

/* ── Content ── */
.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 28px 84px;
}

.toc-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-card:last-of-type { margin-bottom: 44px; }

.toc-intro { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.toc-intro + .toc-intro { margin-top: 12px; }
.toc-intro strong { color: var(--ink); font-weight: 600; }

.toc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.toc-list li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  transition: color 0.15s;
}

.toc-list li a:hover { color: var(--purple-deep); }

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  min-width: 22px;
}

/* ── Policy sections ── */
.policy-section {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 38px;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s;
}

.policy-section:hover { border-color: var(--purple-line); }

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.policy-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul, .policy-section ol {
  padding-left: 20px;
  margin: 12px 0 16px;
}

.policy-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.policy-section strong { color: var(--ink); font-weight: 600; }

.info-box {
  background: var(--purple-tint);
  border: 1px solid var(--purple-line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--purple-deep);
  line-height: 1.7;
}

.info-box strong { color: var(--purple-deep); }

.highlight-box {
  background: var(--green-tint);
  border: 1px solid rgba(11, 148, 102, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--green);
  line-height: 1.7;
}

/* ── Contact box ── */
.contact-box {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 22px;
  padding: 38px 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at 90% -20%, rgba(136, 45, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.contact-box > * { position: relative; }

.contact-box h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 460px;
}

.contact-box a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s, background 0.2s, box-shadow 0.2s;
}

.contact-box a:hover {
  transform: translateY(-2px);
  background: var(--purple-tint);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ── Mini footer ── */
.footer-mini-bar {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 28px;
}

.footer-mini {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-mini .footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--ink-3);
}

.footer-mini .footer-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-mini .footer-link:hover { color: var(--purple-deep); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .toc-list { grid-template-columns: 1fr; }
  .policy-section { padding: 28px 22px; }
  .toc-card { padding: 24px 20px; }
  .content-wrap { padding: 40px 20px 60px; }
  .contact-box { padding: 30px 24px; }
  .page-header { padding: 130px 20px 52px; }
}
