/* 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: 500;
  font-variation-settings: "opsz" 144;
  line-height: .98;
  letter-spacing: -.02em;
  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 {
    display: flex;
    overflow-x: auto;
    width: calc(100% + (var(--gutter) * 2));
    margin: -68px calc(var(--gutter) * -1) 50px;
    padding: 14px var(--gutter);
    gap: 10px;
    transform: none;
    border-radius: 0;
    border-top: 1px solid rgba(255,255,255,.95);
    border-bottom: 1px solid rgba(15,17,20,.06);
    border-left: 0;
    border-right: 0;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15,17,20,.06);
    scrollbar-width: none;
    max-width: none;
  }
  .pol-tabs::-webkit-scrollbar { display: none; }
  .pol-tab {
    flex: 0 0 auto;
    min-width: 190px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid rgba(74,85,50,.12);
    box-shadow: 0 2px 8px rgba(15,17,20,.03);
  }
  .pol-tab.is-active {
    background: var(--sage-d);
    color: var(--white);
    border-color: var(--sage-d);
    box-shadow: 0 8px 22px rgba(74,85,50,.25);
  }
  .pol-panel-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 28px;
  }
  .pol-panel-head > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .pol-panel-head .label {
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
  }
  .pol-panel-head h2 {
    text-align: center;
    margin: 0 auto 12px;
  }
  .pol-panel-head > div:first-child > p:last-child {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
  .pol-key {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 18px 24px !important;
    border-radius: 25px !important;
    border: 1.5px solid rgba(74,85,50,.42) !important;
    background: rgba(255,255,255,.75) !important;
    box-shadow: 0 6px 22px rgba(74,85,50,.06) !important;
  }
  .pol-key span {
    font-size: 11px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--sage-d) !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
  }
  .pol-key strong {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-variation-settings: "opsz" 144 !important;
    font-size: 32px !important;
    line-height: 1.05 !important;
    color: var(--deep) !important;
    margin: 4px 0 6px !important;
    text-align: center !important;
  }
  .pol-key small {
    font-size: 11px !important;
    color: var(--muted) !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .pol-hero-inner { padding-top: 118px; padding-bottom: 108px; }
  .pol-hero h1 { max-width: 10ch; font-size: clamp(40px, 11vw, 56px); }
  .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 {
    margin-top: -64px;
    margin-bottom: 38px;
    padding: 12px var(--gutter);
    gap: 8px;
  }
  .pol-tab { min-width: 178px; min-height: 64px; padding: 10px 12px; }
  .pol-tab-icon { width: 38px; height: 38px; font-size: 17px; }
  .pol-panel-head h2 { font-size: 36px; }
  .pol-panel-head > div:first-child > p:last-child { font-size: 14px; }
  .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; }
}
