/* ==========================================================================
   Policy Page Styles — DriveBro Theme
   ========================================================================== */

/* Policy Header
   ========================================================================== */

.policy-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3d4a 100%);
  color: var(--primary-foreground);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.policy-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.policy-header p {
  font-size: 1rem;
  opacity: 0.85;
}

.policy-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.policy-header__meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Content Card
   ========================================================================== */

.policy-page {
  padding: 2rem 0 4rem;
  background: var(--background);
}

.policy-card {
  max-width: 860px;
  margin: -1.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  z-index: 5;
}

/* Policy Sections
   ========================================================================== */

.policy-section {
  margin-bottom: 2.5rem;
}

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

.policy-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.policy-section__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-section__icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.policy-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

/* Legal Text Formatting
   ========================================================================== */

.policy-content {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.9;
}

.policy-content p {
  margin: 0 0 1rem;
}

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

.policy-content ul,
.policy-content ol {
  margin: 0 0 1rem;
  padding-right: 1.5rem;
  padding-left: 0;
}

.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.policy-content strong {
  color: var(--foreground);
  font-weight: 700;
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.policy-content a:hover {
  color: var(--primary-hover);
}

.policy-highlight {
  background: var(--accent-light);
  border-right: 4px solid var(--accent);
  border-left: none;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.policy-highlight strong {
  color: var(--foreground);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.policy-table th,
.policy-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: right;
}

.policy-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.policy-table td {
  color: var(--muted-foreground);
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .policy-card {
    padding: 1.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

@media (max-width: 640px) {
  .policy-header {
    padding: 3rem 0 2.5rem;
  }

  .policy-section__header {
    gap: 0.5rem;
  }

  .policy-section__icon {
    width: 36px;
    height: 36px;
  }

  .policy-content {
    font-size: 0.875rem;
  }

  .policy-table {
    font-size: 0.8125rem;
  }

  .policy-table th,
  .policy-table td {
    padding: 0.5rem 0.75rem;
  }
}
