/* Estorix yasal belge sayfaları — ortak stil */
:root {
  --odoo-primary: #875A7B;
  --odoo-primary-dark: #714B67;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-gray: #E9ECEF;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --text-muted: #ADB5BD;
  --border-color: #DEE2E6;
  --link-color: #875A7B;
  --link-hover: #714B67;
}

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

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.header-section {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--odoo-primary) 0%, var(--odoo-primary-dark) 100%);
  color: white;
  padding: 60px 0 40px;
}

.header-section .header-content {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.header-meta {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.header-link {
  color: #e0f7fa;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-link:hover { text-decoration: underline; }

.privacy-layout {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  box-sizing: border-box;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 12px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px 10px;
}

.sidebar-heading--sections {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.nav-item {
  display: block;
  padding: 9px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 6px;
}

.nav-item:hover { color: var(--text-primary); background: var(--bg-light); }

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background: #f3eef2;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--odoo-primary);
  border-radius: 2px;
}

.content {
  background: var(--bg-white);
  padding: 8px 8px 48px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.section {
  margin-bottom: 40px;
  padding: 8px 24px;
  min-width: 0;
  max-width: 100%;
}

.section-title,
.section-subtitle,
.section p,
.section h2,
.section h3,
.section li {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

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

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

.section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.section table th,
.section table td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.section table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
}

.section table td { color: var(--text-secondary); }

.link {
  color: var(--link-color);
  text-decoration: none;
}
.link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.legal-callout {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--odoo-primary);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.legal-hub-card {
  display: block;
  padding: 18px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.legal-hub-card:hover {
  border-color: var(--odoo-primary);
  box-shadow: 0 8px 24px rgba(113, 75, 103, .08);
}

.legal-hub-card .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--odoo-primary);
  margin-bottom: 6px;
}

.legal-hub-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.legal-hub-card span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.app-store-banner.show { z-index: 1001; }

@media (max-width: 960px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .header-title { font-size: 32px; }
  .section { padding: 8px 16px; }
}

@media (max-width: 600px) {
  .header-title { font-size: 26px; }
  .header-section { padding: 40px 0 28px; }
}
