/* ═══════════════════════════════════════════════════
   Privacy Policy Page — beautino-theme
   Prefix: privacy-
   Design system: main.css CSS variables
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --privacy-primary: #0F766E;
  --privacy-primary-light: #14B8A6;
  --privacy-primary-dim: rgba(15,118,110,0.08);
  --privacy-primary-glow: rgba(15,118,110,0.25);
  --privacy-gold: #D4A373;
  --privacy-bg: var(--cs-body, #FAFAFA);
  --privacy-surface: var(--cs-surface, #fff);
  --privacy-surface-alt: var(--cs-surface-alt, #fafafa);
  --privacy-text: var(--c-text, #1F2937);
  --privacy-text-muted: var(--c-muted, #6B7280);
  --privacy-border: var(--c-border, #E5E7EB);
  --privacy-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --privacy-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --privacy-shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --privacy-radius: var(--r-lg, 24px);
  --privacy-radius-sm: var(--r-sm, 12px);
  --privacy-radius-xs: 6px;
  --privacy-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --privacy-gradient: linear-gradient(135deg, var(--privacy-primary) 0%, var(--privacy-primary-light) 100%);
}

/* ═══════════════════════════════════════════════════
   Reading Progress
   ═══════════════════════════════════════════════════ */
.privacy-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(15,118,110,0.08);
  z-index: 999;
}

.privacy-progress__bar {
  height: 100%;
  width: 0;
  background: var(--privacy-gradient);
  transition: width 0.15s linear;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════ */
.privacy-hero {
  position: relative;
  padding: 120px 0 30px;
  text-align: center;
  overflow: hidden;
  background: var(--privacy-bg);
}

.privacy-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(15,118,110,0.08), transparent),
    radial-gradient(circle at 20% 80%, rgba(15,118,110,0.04), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20,184,166,0.06), transparent 50%);
  pointer-events: none;
}

.privacy-crumbbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 40px;
}

.privacy-hero__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(15,118,110,0.12);
  margin-bottom: 24px;
}

.privacy-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--privacy-text);
  line-height: 1.3;
  margin: 0 0 20px;
}

.privacy-hero__title em {
  font-style: normal;
  background: var(--privacy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-hero__subtitle {
  font-size: 1.125rem;
  color: var(--privacy-text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.privacy-hero__meta {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.privacy-hero__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--privacy-text-muted);
}

.privacy-hero__updated svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Section + Layout
   ═══════════════════════════════════════════════════ */
.privacy-section {
  padding: 96px 0;
  position: relative;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════
   Table of Contents (Sidebar)
   ═══════════════════════════════════════════════════ */
.privacy-toc {
  position: sticky;
  top: 100px;
}

.privacy-toc__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--privacy-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--privacy-border);
}

.privacy-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-toc__link {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--privacy-text-muted);
  text-decoration: none;
  border-radius: var(--privacy-radius-sm);
  transition: background 0.2s, color 0.2s;
  border-right: 3px solid transparent;
}

.privacy-toc__link:hover {
  color: var(--privacy-text);
  background: var(--privacy-primary-dim);
}

.privacy-toc__link.is-active {
  color: var(--privacy-primary);
  background: var(--privacy-primary-dim);
  border-right-color: var(--privacy-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   Article (Content Sections)
   ═══════════════════════════════════════════════════ */
.privacy-article {
  margin-bottom: 56px;
}

.privacy-article:last-child {
  margin-bottom: 0;
}

.privacy-article__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--privacy-text);
  line-height: 1.3;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--privacy-border);
}

.privacy-article__body {
  font-size: 0.9375rem;
  color: var(--privacy-text-muted);
  line-height: 1.9;
}

.privacy-article__body p {
  margin-bottom: 16px;
}

.privacy-article__body p:last-child {
  margin-bottom: 0;
}

.privacy-article__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--privacy-text);
  margin: 28px 0 12px;
}

.privacy-article__subtitle:first-child {
  margin-top: 0;
}

/* ── Lists ── */
.privacy-article__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.privacy-article__list li {
  position: relative;
  padding: 6px 24px 6px 0;
  line-height: 1.8;
}

.privacy-article__list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--privacy-primary);
  opacity: 0.6;
}

.privacy-article__list li strong {
  color: var(--privacy-text);
  font-weight: 600;
}

.privacy-article__list--check li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--privacy-primary);
  border: none;
  top: 14px;
}

.privacy-article__list--check li::after {
  display: none;
}

/* ═══════════════════════════════════════════════════
   Usage Cards Grid
   ═══════════════════════════════════════════════════ */
.privacy-article__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.privacy-article__card {
  background: var(--privacy-surface);
  border: 1px solid var(--privacy-border);
  border-radius: var(--privacy-radius-sm);
  padding: 24px 20px;
  transition: box-shadow 0.25s var(--privacy-ease), transform 0.25s var(--privacy-ease);
}

.privacy-article__card:hover {
  box-shadow: var(--privacy-shadow-sm);
  transform: translateY(-2px);
}

.privacy-article__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.privacy-article__card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-article__card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--privacy-text);
  margin: 0;
}

.privacy-article__card-text {
  font-size: 0.8125rem;
  color: var(--privacy-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   Cookies Table
   ═══════════════════════════════════════════════════ */
.privacy-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--privacy-radius-sm);
  border: 1px solid var(--privacy-border);
  -webkit-overflow-scrolling: touch;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.privacy-table th {
  text-align: right;
  padding: 14px 18px;
  background: var(--privacy-surface-alt);
  font-weight: 700;
  color: var(--privacy-text);
  border-bottom: 2px solid var(--privacy-border);
  white-space: nowrap;
}

.privacy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--privacy-border);
  color: var(--privacy-text-muted);
  line-height: 1.7;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

.privacy-table tr:hover td {
  background: rgba(15,118,110,0.02);
}

/* ── Cookie Tags ── */
.privacy-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill, 999px);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.privacy-tag--essential {
  background: rgba(15,118,110,0.1);
  color: var(--privacy-primary);
}

.privacy-tag--performance {
  background: rgba(59,130,246,0.1);
  color: #2563EB;
}

.privacy-tag--analytics {
  background: rgba(168,85,247,0.1);
  color: #7C3AED;
}

.privacy-tag--functional {
  background: rgba(245,158,11,0.1);
  color: #D97706;
}

.privacy-tag--marketing {
  background: rgba(107,114,128,0.1);
  color: var(--privacy-text-muted);
}

/* ═══════════════════════════════════════════════════
   Security Grid
   ═══════════════════════════════════════════════════ */
.privacy-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.privacy-security-item {
  background: var(--privacy-surface);
  border: 1px solid var(--privacy-border);
  border-radius: var(--privacy-radius-sm);
  padding: 24px 20px;
  transition: box-shadow 0.25s var(--privacy-ease), transform 0.25s var(--privacy-ease);
}

.privacy-security-item:hover {
  box-shadow: var(--privacy-shadow-sm);
  transform: translateY(-2px);
}

.privacy-security-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.privacy-security-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-security-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--privacy-text);
  margin: 0;
}

.privacy-security-item__text {
  font-size: 0.8125rem;
  color: var(--privacy-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   Rights Grid
   ═══════════════════════════════════════════════════ */
.privacy-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.privacy-rights-item {
  background: var(--privacy-surface);
  border: 1px solid var(--privacy-border);
  border-radius: var(--privacy-radius-sm);
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.25s var(--privacy-ease), transform 0.25s var(--privacy-ease);
}

.privacy-rights-item:hover {
  box-shadow: var(--privacy-shadow-sm);
  transform: translateY(-2px);
}

.privacy-rights-item__number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-rights-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--privacy-text);
  margin: 0 0 6px;
}

.privacy-rights-item__text {
  font-size: 0.8125rem;
  color: var(--privacy-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   Contact Grid
   ═══════════════════════════════════════════════════ */
.privacy-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.privacy-contact-card {
  background: var(--privacy-surface);
  border: 1px solid var(--privacy-border);
  border-radius: var(--privacy-radius-sm);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.25s var(--privacy-ease);
}

.privacy-contact-card:hover {
  box-shadow: var(--privacy-shadow-sm);
}

.privacy-contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-contact-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--privacy-text-muted);
  margin: 0 0 4px;
}

.privacy-contact-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--privacy-text);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

a.privacy-contact-card__value:hover {
  color: var(--privacy-primary);
}

/* ═══════════════════════════════════════════════════
   FAQ Accordion
   ═══════════════════════════════════════════════════ */
.privacy-faq-item {
  background: var(--privacy-surface);
  border: 1px solid var(--privacy-border);
  border-radius: var(--privacy-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.privacy-faq-item:hover {
  box-shadow: var(--privacy-shadow-sm);
}

.privacy-faq-item.is-open {
  box-shadow: var(--privacy-shadow-md);
}

.privacy-faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--privacy-text);
  text-align: start;
  background: var(--privacy-surface);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s var(--privacy-ease);
}

.privacy-faq-item.is-open .privacy-faq-item__trigger {
  border-bottom: 1px dashed rgba(15,118,110,.25);
}

.privacy-faq-item__trigger:hover {
  color: var(--privacy-primary);
}

.privacy-faq-item__question {
  font-size: 15px;
  font-weight: 700;
  color: var(--privacy-text);
  line-height: 1.5;
}

.privacy-faq-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15,118,110,.08);
  color: var(--privacy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--privacy-ease), background 0.3s;
}

.privacy-faq-item.is-open .privacy-faq-item__icon {
  transform: rotate(45deg);
  background: var(--grad-p);
  color: #fff;
}

.privacy-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--privacy-ease);
}

.privacy-faq-item.is-open .privacy-faq-item__answer {
  max-height: 220px;
}

.privacy-faq-item__answer-inner {
  padding: 20px 22px 20px;
  font-size: 14px;
  color: var(--privacy-text-muted);
  line-height: 1.9;
}

/* ═══════════════════════════════════════════════════
   Trust Section
   ═══════════════════════════════════════════════════ */
.privacy-trust {
  background: var(--privacy-surface-alt);
  border-radius: var(--privacy-radius);
  margin-top: 20px;
}

.privacy-trust__inner {
  text-align: center;
  padding: 48px 32px;
}

.privacy-trust__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--privacy-primary-dim);
  color: var(--privacy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.privacy-trust__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--privacy-text);
  margin: 0 0 12px;
}

.privacy-trust__text {
  font-size: 1rem;
  color: var(--privacy-text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 28px;
}

.privacy-trust__row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   Reveal Animation
   ═══════════════════════════════════════════════════ */
.privacy-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.privacy-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   Reduced Motion
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .privacy-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   Responsive: 1080px
   ═══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .privacy-layout {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }

  .privacy-article__grid,
  .privacy-security-grid,
  .privacy-rights-grid,
  .privacy-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   Responsive: 720px
   ═══════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .privacy-crumbbar {
    margin-bottom: 20px;
  }

  .privacy-section {
    padding: 64px 0;
  }

  .privacy-hero {
    padding: 120px 0 80px;
  }

  .privacy-hero__title {
    font-size: 1.75rem;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .privacy-toc {
    display: none;
  }

  .privacy-toc__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .privacy-toc__list::-webkit-scrollbar {
    display: none;
  }

  .privacy-toc__link {
    white-space: nowrap;
    border-right: none;
    border-bottom: 3px solid transparent;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .privacy-toc__link.is-active {
    border-bottom-color: var(--privacy-primary);
    border-right-color: transparent;
  }

  .privacy-faq-item__trigger {
    padding: 16px;
  }

  .privacy-faq-item__answer-inner {
    padding: 0 16px 16px;
  }

  .privacy-trust__row {
    flex-direction: column;
    align-items: center;
  }

  .privacy-trust__row .btn {
    width: 100%;
    max-width: 280px;
  }

  .privacy-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   Responsive: 480px
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .privacy-hero {
    padding: 90px 0 30px;
  }

  .privacy-hero__title {
    font-size: 1.5rem;
  }

  .privacy-hero__subtitle {
    font-size: 1rem;
  }

  .privacy-article__card,
  .privacy-security-item,
  .privacy-rights-item,
  .privacy-contact-card {
    padding: 20px 16px;
  }

  .privacy-trust__inner {
    padding: 32px 20px;
  }
}
