/* ═══════════════════════════════════════════════════════════════
   SOLUÇÃO HABITAÇÃO · DS SOBRAL
   css/pages.css — Estilos das páginas legais
   Usado em: privacidade.html / termos.html / cookies.html
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   CUSTOM PROPERTIES — Design Tokens
══════════════════════════════════════ */
:root {
  --green:      #004B30;
  --green-dark: #00361f;
  --green-mid:  #005c3b;
  --gold:       #867347;
  --gold-pale:  #c4aa7a;
  --gold-light: #f5efe4;
  --off-white:  #f7f6f2;
  --text-dark:  #1a1a1a;
  --text-mid:   #444444;
  --text-light: #666666;
  --border:     #e0ddd5;
  --white:      #ffffff;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  background: var(--green);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.navbar-brand img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  mix-blend-mode: screen;
}
.navbar-brand span {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}
.navbar-back {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.navbar-back:hover { color: var(--gold-pale); }
.navbar-reclamacoes {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .2s;
}
.navbar-reclamacoes:hover { color: rgba(255,255,255,.6); }
@media (max-width: 768px) { .navbar-reclamacoes { display: none; } }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header {
  background: var(--off-white);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header-inner { max-width: 960px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--green); }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--green);
  margin-bottom: .5rem;
}
.page-header p { color: var(--text-light); font-size: .9rem; }

/* ══════════════════════════════════════
   MAIN LAYOUT — Sidebar + Content
══════════════════════════════════════ */
.main-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar-inner {
  position: sticky;
  top: 88px;
  background: var(--off-white);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.sidebar-inner h3 {
  font-size: .75rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.sidebar-nav a {
  display: block;
  padding: .35rem .5rem;
  font-size: .82rem;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, color .2s;
  line-height: 1.4;
}
.sidebar-nav a:hover {
  background: var(--green);
  color: var(--white);
}

/* ══════════════════════════════════════
   PROSE — Conteúdo textual
══════════════════════════════════════ */
.prose h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
  margin: 2.5rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold-pale);
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin: 1.75rem 0 .6rem;
}
.prose p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.prose ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--text-mid);
  margin-bottom: .6rem;
  line-height: 1.7;
}
.prose ul li::before {
  content: '•';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.prose a:hover { color: var(--gold); }
.prose strong   { color: var(--green); font-weight: 700; }

/* ══════════════════════════════════════
   ALERT BOXES
══════════════════════════════════════ */
.alert {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-green {
  background: rgba(0,75,48,.08);
  border: 1px solid rgba(0,75,48,.2);
  color: var(--green-dark);
}
.alert-green i { color: var(--green); margin-top: .15rem; }
.alert-amber {
  background: rgba(134,115,71,.08);
  border: 1px solid rgba(134,115,71,.25);
  color: #5a4a2a;
}
.alert-amber i { color: var(--gold); margin-top: .15rem; }
.alert-red {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}
.alert-red i { color: #dc2626; margin-top: .15rem; }

/* ══════════════════════════════════════
   INFO CARDS
══════════════════════════════════════ */
.info-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  margin: 1.25rem 0;
}
.info-card-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: .75rem;
}
.info-card .card-line {
  font-size: .85rem;
  color: var(--text-mid);
  margin-bottom: .35rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.info-card .card-line i { color: var(--gold); width: 14px; flex-shrink: 0; margin-top: .15rem; }

.info-grid {
  background: var(--off-white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 1.25rem 0;
}
.info-grid-row {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.info-grid-row:last-child { border-bottom: none; }
.info-grid-row .row-title {
  font-weight: 800;
  color: var(--green);
  font-size: .9rem;
  margin-bottom: .5rem;
}
.info-grid-row .row-body {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CONTACT GRID
══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
.contact-box {
  background: var(--off-white);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
}
.contact-box .box-title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: .6rem;
}
.contact-box .box-line {
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.contact-box .box-line i { color: var(--gold); width: 14px; }

/* ══════════════════════════════════════
   REG BOX
══════════════════════════════════════ */
.reg-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
}
.reg-box-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.reg-box-title i { color: var(--gold); }
.reg-box p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════
   COOKIES — Toggle switches (cookies.html)
══════════════════════════════════════ */
.cookie-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.cookie-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--off-white);
  gap: 1rem;
}
.cookie-section-header h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--green);
  margin: 0;
}
.cookie-section-body {
  padding: 1rem 1.5rem;
  background: var(--white);
}
.cookie-section-body p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.toggle-label { font-size: .78rem; font-weight: 700; color: var(--text-light); white-space: nowrap; }
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: .55; cursor: not-allowed; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.5);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold-pale); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; }
}
@media (max-width: 768px) {
  .main-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar   { display: none; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}
