/* Clinica Pro - Privacy Policy Stylesheet */
:root {
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-light: #e6f0ff;
  --secondary: #0ea5e9;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="ltr"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switch {
  font-weight: 700;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f8fafc 100%);
  padding: 4.5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.meta-item strong {
  color: var(--primary);
}

/* Highlights Grid */
.highlights-section {
  max-width: 1100px;
  margin: -2rem auto 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.icon-blue {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-green {
  background: var(--success-light);
  color: var(--success);
}

.icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.highlight-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.highlight-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Main Content Layout */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

/* Sidebar / Table of Contents */
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.toc-link:hover,
.toc-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* Content Sections */
.policy-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.section-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.section-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.section-num {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.policy-content p {
  color: #334155;
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.policy-content ul {
  margin: 0 0 1.25rem 1.5rem;
  color: #334155;
}

[dir="rtl"] .policy-content ul {
  margin: 0 1.5rem 1.25rem 0;
}

.policy-content li {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

.callout-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #1e293b;
}

[dir="rtl"] .callout-box {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.contact-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-icon {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .hero h2 {
    font-size: 1.9rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .sidebar,
  .footer,
  .btn,
  .badge-verified {
    display: none !important;
  }
  body, .main-wrapper, .policy-content {
    background: #fff !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .section-block {
    page-break-inside: avoid;
  }
}
