/* MAARTORI — Políticas v2. Reorganização editorial por documento. */

.pol-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}
.pol-hero-img {
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.pol-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,10,12,.67) 0%, rgba(15,17,20,.78) 56%, rgba(15,17,20,.93) 100%),
    radial-gradient(circle at 50% 36%, rgba(151,165,121,.18), transparent 48%);
}
.pol-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(118px, 16vh, 170px);
  padding-bottom: clamp(72px, 10vh, 110px);
}
.pol-hero .label { justify-content: center; color: var(--sage-l); }
.pol-hero .label-dot { background: var(--sage-l); }
.pol-hero h1 {
  max-width: 13ch;
  margin: 18px auto 24px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.pol-hero .lead {
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  text-wrap: balance;
}
.pol-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.pol-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  letter-spacing: .02em;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.pol-trust i { color: var(--sage-l); font-size: 17px; }

.pol-content {
  position: relative;
  padding: 0 0 var(--space-7);
  background: var(--surface);
}
.pol-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 55px rgba(15,17,20,.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.pol-tab {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--deep);
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pol-tab:hover { transform: translateY(-2px); background: var(--sage-15); }
.pol-tab.is-active {
  background: var(--sage-d);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(74,85,50,.24);
}
.pol-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage-15);
  color: var(--sage-d);
  font-size: 21px;
  transition: background .25s ease, color .25s ease;
}
.pol-tab.is-active .pol-tab-icon { background: rgba(255,255,255,.13); color: var(--sage-l); }
.pol-tab > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.pol-tab strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
.pol-tab small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.pol-tab.is-active small { color: rgba(255,255,255,.65); }

.pol-panels { max-width: 960px; margin: 4px auto 0; }
.pol-panel[hidden] { display: none !important; }
.pol-panel { animation: polPanelIn .38s cubic-bezier(.4,0,.2,1); }
@keyframes polPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pol-panel-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) 170px;
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}
.pol-panel-head .label { margin-bottom: 13px; color: var(--sage-d); }
.pol-panel-head h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  letter-spacing: -.035em;
}
.pol-panel-head > div:first-child > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.pol-key {
  padding: 18px 20px;
  border: 1.5px solid rgba(74,85,50,.42);
  border-radius: 25px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 6px 22px rgba(74,85,50,.06);
}
.pol-key span, .pol-key small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.pol-key strong { display: block; margin: 4px 0 5px; color: var(--deep); font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1; }

.pol-highlight {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 23px 26px;
  border: 1px solid var(--sage-30);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(151,165,121,.15), rgba(255,255,255,.84));
  box-shadow: 0 8px 26px rgba(74,85,50,.06);
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.pol-highlight:hover {
  transform: scale(1.05);
  border-color: var(--sage-d);
  box-shadow: 0 14px 36px rgba(74,85,50,.16), 0 0 0 1px rgba(74,85,50,.08);
}
.pol-highlight > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sage-d);
  color: var(--white);
  font-size: 25px;
}
.pol-highlight strong { display: block; margin-bottom: 5px; color: var(--deep); font-size: 15px; }
.pol-highlight p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.pol-permissions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.pol-permit {
  display: grid;
  grid-template-columns: minmax(82px, 20%) minmax(0,1fr);
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(15,17,20,.04);
}
.pol-permit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  margin: 0;
  border-right: 1px solid transparent;
  border-radius: 0;
  font-size: 30px;
}
.pol-permit-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 12px;
}
.pol-permit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 22px 24px;
  text-align: left;
}
.pol-permit-copy strong {
  margin-bottom: 7px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
.pol-permit-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.pol-permit-ok { border: 1.5px solid rgba(74,85,50,.42); }
.pol-permit-ok .pol-permit-icon {
  border-right-color: rgba(74,85,50,.24);
  background: var(--sage-15);
  color: var(--sage-d);
}
.pol-permit-no { border: 1.5px solid rgba(125,101,95,.42); }
.pol-permit-no .pol-permit-icon {
  border-right-color: rgba(125,101,95,.24);
  background: rgba(125,101,95,.10);
  color: #7d655f;
}

.pol-accordion { display: flex; flex-direction: column; gap: 12px; }
.pol-item {
  overflow: hidden;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(15,17,20,.035);
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.pol-item:hover { transform: translateY(-2px); border-color: var(--sage-30); box-shadow: 0 13px 32px rgba(74,85,50,.09); }
.pol-item.is-open { border-color: var(--sage-d); box-shadow: 0 16px 38px rgba(74,85,50,.12); }
.pol-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--deep);
  font: 600 15px/1.35 var(--font);
  text-align: left;
  cursor: pointer;
}
.pol-q > span { display: flex; align-items: center; gap: 17px; }
.pol-q small { min-width: 22px; color: var(--sage); font: 500 13px/1 var(--font-display); font-style: italic; }
.pol-q > i { color: var(--sage-d); font-size: 20px; }
.pol-a { max-height: 0; overflow: hidden; opacity: 0; color: var(--muted); transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease; }
.pol-a.is-open { max-height: 650px; opacity: 1; }
.pol-a-inner { padding: 0 64px 24px; }
.pol-a p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.pol-a strong { color: var(--deep); font-weight: 600; }
.pol-a ul, .pol-a ol { display: flex; flex-direction: column; gap: 9px; margin: 0; padding-left: 19px; }
.pol-a li { padding-left: 4px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.pol-a li::marker { color: var(--sage-d); font-weight: 600; }
.pol-a li + p, .pol-a ul + p { margin-top: 15px; }
.pol-cta-section .label { justify-content: center; }

@media (max-width: 900px) {
  .pol-content { padding-top: 30px; }
  .pol-tabs { overflow-x: auto; grid-template-columns: repeat(4, 220px); justify-content: start; transform: none; margin: -68px calc(var(--gutter) * -1) 50px; padding: 10px var(--gutter) 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-width: none; }
  .pol-tabs::-webkit-scrollbar { display: none; }
  .pol-tab { background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(15,17,20,.1); }
  .pol-panel-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .pol-key { max-width: 220px; }
}

@media (max-width: 640px) {
  .pol-hero-inner { padding-top: 118px; padding-bottom: 108px; }
  .pol-hero h1 { max-width: 10ch; font-size: clamp(44px, 13vw, 62px); }
  .pol-hero .lead { font-size: 16px; }
  .pol-trust { gap: 7px; margin-top: 28px; }
  .pol-trust span { padding: 9px 12px; font-size: 10px; }
  .pol-content { padding-bottom: var(--space-5); }
  .pol-tabs { grid-template-columns: repeat(4, 198px); margin-top: -64px; margin-bottom: 38px; }
  .pol-tab { min-height: 67px; grid-template-columns: 40px minmax(0,1fr); }
  .pol-tab-icon { width: 40px; height: 40px; font-size: 18px; }
  .pol-panel-head h2 { font-size: 40px; }
  .pol-panel-head > div:first-child > p:last-child { font-size: 14px; }
  .pol-key { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: center; width: 100%; max-width: none; }
  .pol-key span { grid-row: 1 / 3; }
  .pol-key strong { margin: 0; font-size: 23px; }
  .pol-highlight { grid-template-columns: 44px minmax(0,1fr); gap: 13px; padding: 18px; }
  .pol-highlight > i { width: 44px; height: 44px; font-size: 21px; }
  .pol-permissions { grid-template-columns: 1fr; }
  .pol-permit { grid-template-columns: 76px minmax(0,1fr); min-height: 118px; }
  .pol-permit-icon i { width: 44px; height: 44px; }
  .pol-permit-copy { padding: 18px; }
  .pol-q { padding: 19px 18px; gap: 14px; font-size: 14px; }
  .pol-q > span { gap: 11px; }
  .pol-a-inner { padding: 0 18px 20px 51px; }
}

@media (prefers-reduced-motion: reduce) {
  .pol-panel { animation: none; }
  .pol-tab, .pol-item, .pol-a, .pol-highlight { transition: none; }
  .pol-tab:hover, .pol-item:hover, .pol-highlight:hover { transform: none; }
}
