/* AventraFlow Privacy Policy Stylesheet */
:root {
  --brand-primary: #1976D2;
  --brand-primary-hover: #1565C0;
  --brand-bluegreen: #00796B;
  --brand-bluegreen-light: #E0F2F1;
  --brand-bg: #F8FBFD;
  --card-bg: #FFFFFF;
  --text-main: #1C2733;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border-color: #E2E8F0;
  --border-focus: #90CDF4;
  --accent-light: #EBF8FF;
  --success-color: #059669;
  --success-bg: #ECFDF5;
  --warning-color: #D97706;
  --warning-bg: #FFFBEB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--brand-bg);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
}

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  font-size: 28px;
  line-height: 1;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-bluegreen);
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--brand-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  margin-left: 6px;
}

.nav-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

/* Main Layout */
.page-wrapper {
  max-width: 960px;
  margin: 32px auto 64px auto;
  padding: 0 20px;
}

/* Hero / Header Card */
.policy-hero {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.policy-badge {
  display: inline-block;
  background: var(--brand-bluegreen-light);
  color: var(--brand-bluegreen);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.policy-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.policy-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.policy-meta-item strong {
  color: var(--text-main);
}

/* Key Highlights Cards Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-card.teal {
  border-left: 4px solid var(--brand-bluegreen);
}

.highlight-card.blue {
  border-left: 4px solid var(--brand-primary);
}

.highlight-card.green {
  border-left: 4px solid var(--success-color);
}

.highlight-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.highlight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.highlight-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Quick Nav / Table of Contents */
.toc-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.toc-list a {
  display: inline-block;
  font-size: 13px;
  color: var(--brand-primary);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Content Container */
.policy-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

/* Section Styling */
.policy-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

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

.section-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-bluegreen);
  border-bottom: 2px solid var(--brand-bluegreen-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-body p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.section-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 10px 0;
}

.section-body ul, .section-body ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.section-body li {
  margin-bottom: 8px;
}

.section-body strong {
  color: var(--text-main);
}

/* Callout Box */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-info {
  background: var(--accent-light);
  border-left: 4px solid var(--brand-primary);
  color: #1A365D;
}

.callout-warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-color);
  color: #744210;
}

.callout-success {
  background: var(--success-bg);
  border-left: 4px solid var(--success-color);
  color: #065F46;
}

.callout strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.policy-table th {
  background: #F8FAFC;
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

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

.policy-table tr:hover td {
  background-color: #F8FBFD;
}

.tag-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.tag-badge.blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.tag-badge.green {
  background: #D1FAE5;
  color: #065F46;
}

.tag-badge.amber {
  background: #FEF3C7;
  color: #92400E;
}

/* Step cards for Deletion process */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-bluegreen);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.step-text h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact box */
.contact-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-box a {
  color: var(--brand-bluegreen);
  font-weight: 700;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--brand-primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Back to top button */
.back-to-top {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .policy-hero {
    padding: 24px 20px;
  }
  .policy-title {
    font-size: 24px;
  }
  .policy-content {
    padding: 24px 20px;
  }
  .section-heading {
    font-size: 18px;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .site-header, .toc-box, .back-to-top, .site-footer {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }
  .page-wrapper {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
  .policy-hero, .policy-content {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .policy-section {
    page-break-inside: avoid;
  }
}
