/* Páginas de políticas — layout de documento legal (Vila Artesan) */

.policy-page {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── TOPO ── */
.policy-top {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.policy-top .logo {
  margin-bottom: 0;
  animation: fadeDown 0.7s ease forwards;
}
.policy-top .logo img { width: 132px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text3);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--terracota); }

/* ── CABEÇALHO DO DOCUMENTO ── */
.policy-header {
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}
.policy-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text1);
  margin-bottom: 14px;
  transition: color 0.35s;
}
.policy-header h1 em { font-style: italic; color: var(--terracota); }

.policy-intro {
  font-size: 13.5px;
  color: var(--text3);
  border-left: 2px solid var(--terracota);
  background: var(--cond-bg);
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
  text-align: left;
  line-height: 1.6;
}
.policy-intro strong { color: var(--text2); font-weight: 600; }
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text5);
  margin-top: 16px;
}
.policy-meta span strong { color: var(--text3); font-weight: 700; }

.policy-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
  margin: 32px 0;
}

/* ── CORPO ── */
.policy-body {
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}
.policy-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text1);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  transition: color 0.35s;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text2);
  margin: 26px 0 8px;
  transition: color 0.35s;
}
.policy-body p {
  font-size: 14.5px;
  color: var(--text3);
  line-height: 1.7;
  margin-bottom: 14px;
}
.policy-body strong { color: var(--text2); font-weight: 600; }
.policy-body a {
  color: var(--terracota);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.policy-body ul,
.policy-body ol {
  margin: 0 0 16px 20px;
  color: var(--text3);
  font-size: 14.5px;
  line-height: 1.7;
}
.policy-body li { margin-bottom: 6px; }
.policy-body li::marker { color: var(--terracota); }

/* Sumário */
.policy-toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.policy-toc h2 {
  border: none;
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text5);
  margin: 0 0 10px;
  padding: 0;
}
.policy-toc ol { margin-bottom: 0; }
.policy-toc a { text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }

/* Callout (blocos de destaque ">") */
.policy-callout {
  border-left: 3px solid var(--terracota);
  background: var(--gift-bg);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0 22px;
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.65;
}
.policy-callout strong { color: var(--text2); }

/* Tabelas */
.policy-table-wrap { overflow-x: auto; margin: 0 0 22px; }
.policy-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 420px;
}
.policy-body th,
.policy-body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text3);
  line-height: 1.55;
}
.policy-body th {
  background: var(--bg3);
  color: var(--text2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.policy-body tbody tr:nth-child(even) td { background: var(--bg2); }

/* Tabela de planos → cards empilhados no mobile (evita rolagem lateral) */
@media (max-width: 560px) {
  .policy-body .plans-table { min-width: 0; }
  .policy-body .plans-table thead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
  }
  .policy-body .plans-table tbody,
  .policy-body .plans-table tr,
  .policy-body .plans-table td { display: block; width: 100%; }
  .policy-body .plans-table tr {
    border: 1px solid var(--border2);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 14px;
  }
  .policy-body .plans-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    text-align: right;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }
  .policy-body .plans-table tbody tr td:last-child { border-bottom: none; }
  .policy-body .plans-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text2);
    text-align: left;
    flex-shrink: 0;
  }
  .policy-body .plans-table tbody tr td:first-child {
    display: block;
    text-align: center;
    background: var(--bg3);
    font-size: 15px;
  }
  .policy-body .plans-table tbody tr td:first-child::before { display: none; }
}

/* Status (✅ ⚠️ ❌) nas subseções */
.status-h3 { display: flex; align-items: baseline; gap: 8px; }
.status-h3 .ico { font-size: 15px; }

/* Base legal / rodapé do documento */
.policy-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text4);
  line-height: 1.7;
}
.policy-legal p { font-size: 12.5px; color: var(--text4); }
.policy-legal strong { color: var(--text3); }

/* ── RODAPÉ ── */
.policy-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-border);
}
.policy-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: 12px;
}
.policy-footer-links a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.policy-footer-links a:hover { color: var(--terracota); }
.policy-footer-links a.current { color: var(--terracota); font-weight: 600; }

@media (max-width: 480px) {
  .policy-page { padding: 40px 18px 64px; }
  .policy-body h2 { font-size: 21px; }
}
