/* ─── Privacy Policy page styles ────────────────────────────── */

/* Hero / header */
.pp-hero {
  padding-block: 4rem 3rem;
  background:
    radial-gradient(ellipse 50% 50% at 50% -5%, rgba(108,99,255,.14) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.pp-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-block: .5rem 1rem;
}

.pp-meta {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pp-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: .75rem;
  line-height: 1.75;
}

/* Two-column layout: TOC + body */
.pp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding-block: 3.5rem;
}

@media (max-width: 860px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-toc { display: none; }
}

/* Sticky TOC */
.pp-toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.toc-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

.toc-list {
  list-style: decimal;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.toc-list a {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
  transition: color .2s;
}

.toc-list a:hover,
.toc-list a.active { color: var(--accent); }

/* Body sections */
.pp-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.pp-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pp-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.pp-section h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.pp-section p,
.pp-section li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: .4rem;
}

.pp-section ul,
.pp-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.pp-section li { margin-bottom: .3rem; }
.pp-section li::marker { color: var(--accent); }

.pp-section strong { color: var(--text); font-weight: 600; }

code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .15em .45em;
  font-size: .85em;
  color: #a89fff;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

/* Links */
.pp-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(108,99,255,.4);
  transition: text-decoration-color .2s;
}
.pp-link:hover { text-decoration-color: var(--accent); }

/* Callout box */
.pp-callout {
  background: rgba(108,99,255,.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin-block: 1rem;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.6;
}

/* Table */
.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-block: 1rem 1.5rem;
}

.pp-table thead {
  background: var(--surface2);
}

.pp-table th,
.pp-table td {
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.pp-table th {
  font-weight: 700;
  color: var(--text);
  font-size: .82rem;
  letter-spacing: .3px;
}

.pp-table tr:nth-child(even) { background: rgba(255,255,255,.02); }

/* Contact cards */
.pp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pp-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
}

.pp-contact-card h4 { color: var(--text); font-size: .9rem; margin-bottom: .6rem; }
.pp-contact-card p  { font-size: .875rem; color: var(--muted); margin-bottom: .3rem; line-height: 1.6; }

/* Deletion form */
.pp-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.pp-form-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.pp-form { display: flex; flex-direction: column; gap: .85rem; }

.pp-field { display: flex; flex-direction: column; gap: .3rem; }

.pp-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .2px;
}

.pp-field input,
.pp-field select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .93rem;
  font-family: var(--font);
  padding: .6rem .85rem;
  outline: none;
  transition: border-color .2s;
}

.pp-field input:focus,
.pp-field select:focus { border-color: var(--accent); }
.pp-field select option { background: var(--surface2); }

.pp-submit-btn {
  display: inline-block;
  width: fit-content;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  font-family: var(--font);
  padding: .65rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.pp-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.pp-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.pp-form-msg { font-size: .88rem; min-height: 1.2em; }
.pp-form-msg.success { color: var(--green); }
.pp-form-msg.error   { color: var(--red); }

