/* ==========================================================================
   AIKO - Privacy Policy Stylesheet
   Matches exact typography, layout, and responsiveness from design
   ========================================================================== */

:root {
  --pp-primary: #a6171b;
  --pp-primary-light: #fff1f1;
  --pp-primary-hover: #8e1417;
  --pp-text-dark: #0f172a;
  --pp-text-heading: #111827;
  --pp-text-body: #334155;
  --pp-text-muted: #64748b;
  --pp-border-color: #e2e8f0;
  --pp-bg-light: #f8fafc;
  --pp-font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Page Wrapper */
.privacy-policy-wrapper {
  font-family: var(--pp-font-family);
  background-color: #ffffff;
  color: var(--pp-text-body);
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
  overflow-x: clip;
}

@media (max-width: 991px) {
  .privacy-policy-wrapper {
    padding-top: 110px;
    padding-bottom: 60px;
  }
}

/* Page Header */
.pp-header-area {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--pp-border-color);
  margin-bottom: 48px;
}

.pp-category-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pp-primary);
  margin-bottom: 14px;
}

.pp-main-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--pp-text-heading);
  margin-bottom: 14px;
}

.pp-last-updated {
  font-size: 15px;
  font-weight: 400;
  color: var(--pp-text-muted);
  margin: 0;
}

/* Two Column Layout */
.pp-layout-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

@media (max-width: 991px) {
  .pp-layout-grid {
    flex-direction: column;
    gap: 36px;
  }
}

/* Left Sidebar - Sticky Table of Contents */
.pp-sidebar-col {
  flex: 0 0 320px;
  max-width: 320px;
  position: sticky;
  top: 110px;
  align-self: flex-start;
  z-index: 20;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .pp-sidebar-col {
    flex: 0 0 280px;
    max-width: 280px;
  }
}

@media (max-width: 991px) {
  .pp-sidebar-col {
    flex: 1 1 100%;
    max-width: 100%;
    position: static;
    width: 100%;
  }
}

.pp-toc-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--pp-border-color);
  padding: 24px 20px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.pp-toc-card::-webkit-scrollbar {
  width: 5px;
}

.pp-toc-card::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.pp-toc-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pp-text-muted);
  margin-bottom: 16px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pp-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pp-toc-item {
  margin: 0;
  padding: 0;
}

.pp-toc-link {
  display: flex;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--pp-text-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease-in-out;
}

.pp-toc-link .toc-num {
  color: var(--pp-primary);
  font-weight: 700;
  font-size: 13.5px;
  margin-right: 12px;
  min-width: 22px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pp-toc-link .toc-title {
  color: inherit;
  transition: color 0.2s ease;
}

.pp-toc-link:hover {
  background-color: var(--pp-primary-light);
  color: var(--pp-primary);
}

.pp-toc-link.active {
  background-color: var(--pp-primary-light);
  color: var(--pp-primary);
  font-weight: 600;
}

.pp-toc-link.active .toc-title {
  color: var(--pp-text-dark);
}

/* Mobile Quick Menu Toggle */
@media (max-width: 991px) {
  .pp-toc-card {
    max-height: none;
    padding: 16px 18px;
    background: #f8fafc;
  }
  
  .pp-toc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
  }
  
  .pp-toc-collapse {
    display: none;
    margin-top: 14px;
  }
  
  .pp-toc-collapse.show {
    display: block;
  }
}

/* Right Content Area */
.pp-content-col {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 820px;
}

/* Introductory Section */
.pp-intro-area {
  margin-bottom: 48px;
}

.pp-intro-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--pp-text-heading);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pp-intro-p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--pp-text-body);
  margin-bottom: 16px;
}

/* Policy Sections */
.pp-section {
  scroll-margin-top: 130px;
  margin-bottom: 48px;
  padding-bottom: 8px;
}

.pp-section:last-of-type {
  margin-bottom: 0;
}

.pp-section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--pp-text-heading);
  line-height: 1.25;
  margin-bottom: 18px;
}

.pp-section-num {
  color: var(--pp-primary);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 28px);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pp-section-title {
  color: var(--pp-text-heading);
}

.pp-section-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--pp-text-body);
  margin-bottom: 16px;
}

.pp-section-body p strong {
  font-weight: 700;
  color: var(--pp-text-heading);
}

/* Custom Bullet List */
.pp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.pp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--pp-text-body);
  margin-bottom: 10px;
}

.pp-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--pp-text-muted);
  font-size: 18px;
  line-height: 1.5;
}

/* Email & External Links */
.pp-link {
  color: var(--pp-text-heading);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.pp-link:hover {
  color: var(--pp-primary);
  text-decoration-color: var(--pp-primary);
}

/* Contact Info Card */
.pp-contact-box {
  background: var(--pp-bg-light);
  border: 1px solid var(--pp-border-color);
  border-left: 4px solid var(--pp-primary);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 20px;
}

.pp-contact-company {
  font-size: 16px;
  font-weight: 800;
  color: var(--pp-text-heading);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.pp-contact-detail {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pp-text-body);
  margin-bottom: 4px;
}

.pp-contact-email-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pp-border-color);
  font-size: 15px;
  color: var(--pp-text-body);
}

/* Smooth Scrolling Support */
html {
  scroll-behavior: smooth;
}
