:root {
  --color-bg: #f8faf9;
  --color-bg-soft: #eef4f2;
  --color-surface: #ffffff;
  --color-border: #d9e5e1;
  --color-primary: #176b5b;
  --color-primary-dark: #123f38;
  --color-primary-hover: #0f584c;
  --color-primary-soft: #ddede8;
  --color-accent: #d47a45;
  --color-text: #18332f;
  --color-muted: #526b66;
  --color-disabled: #81928e;
  --color-danger: #b3261e;
  --shadow-card: 0 1px 2px rgba(18, 63, 56, 0.05), 0 10px 28px rgba(18, 63, 56, 0.07);
  --shadow-card-hover: 0 16px 36px rgba(18, 63, 56, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

img {
  max-width: 100%;
}

[id] {
  scroll-margin-top: 96px;
}

a,
button,
input,
select,
textarea {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: #a9532f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(212, 122, 69, 0.38);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.1);
}

::selection {
  background: #cbe4dc;
  color: var(--color-primary-dark);
}

.surface-card {
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.surface-card:hover {
  border-color: #b9d2ca;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.action-button:hover {
  background: var(--color-primary-hover) !important;
  color: var(--color-surface) !important;
  box-shadow: 0 7px 18px rgba(18, 63, 56, 0.2);
  transform: translateY(-1px);
}

.is-invalid {
  border-color: var(--color-danger) !important;
}

.process-step.step-light {
  background: var(--color-bg);
}

.process-step.step-soft {
  background: var(--color-bg-soft);
}

.process-row.row {
  flex-direction: row;
}

.process-row.row-reverse {
  flex-direction: row-reverse;
}

.faq-icon.is-open {
  transform: rotate(45deg) !important;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 18px rgba(18, 63, 56, 0.08);
}

.js-enhanced .site-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-enhanced .site-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: var(--color-surface);
  box-shadow: 0 10px 28px rgba(18, 63, 56, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.site-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-back-to-top:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

nav[aria-label] a.is-current {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 760px) {
  .process-row,
  .process-row.row,
  .process-row.row-reverse {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .surface-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enhanced .site-reveal {
    opacity: 1;
    transform: none;
  }
}

.termos-style-001 {
  font-family:Inter,system-ui,sans-serif;
  color:var(--color-text);
  background:var(--color-bg);
  padding:clamp(2.5rem,7vw,4.5rem) 24px clamp(3rem,7vw,5rem);
}

.termos-style-002 {
  max-width:1460px;
  margin:0 auto;
  display:flex;
  gap:56px;
  flex-wrap:wrap;
}

.termos-style-003 {
  flex:1 1 220px;
  max-width:240px;
  position:sticky;
  top:96px;
  align-self:flex-start;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.termos-style-004 {
  font:500 13.5px Inter,sans-serif;
  color:var(--color-muted);
  text-decoration:none;
  line-height:1.4;
}

.termos-style-005 {
  flex:2 1 560px;
  min-width:0;
  max-width:68ch;
}

.termos-style-006 {
  font-family:'Instrument Serif',Georgia,serif;
  font-size:clamp(2rem,4.5vw,2.6rem);
  line-height:1.15;
  font-weight:400;
  margin:0 0 10px;
}

.termos-style-007 {
  font:400 13.5px Inter,sans-serif;
  color:var(--color-muted);
  margin:0 0 40px;
  font-style:italic;
}

.termos-style-008 {
  border:1px dashed var(--color-border);
  background:var(--color-bg-soft);
  border-radius:10px;
  padding:18px 20px;
  margin-bottom:36px;
  font:500 14.5px/1.6 Inter,sans-serif;
  color:var(--color-muted);
}

.termos-style-009 {
  margin-bottom:36px;
  scroll-margin-top:96px;
}

.termos-style-010 {
  font:600 1.15rem Inter,sans-serif;
  margin:0 0 12px;
}

.termos-style-011 {
  border:1px dashed var(--color-border);
  border-radius:8px;
  padding:16px 18px;
  font:400 15px/1.6 Inter,sans-serif;
  color:var(--color-muted);
  font-style:italic;
}

.termos-style-012 {
  background:var(--color-bg-soft);
  border-top:1px solid var(--color-border);
  padding:clamp(2.5rem,6vw,3.5rem) 24px 2.5rem;
  font-family:Inter,system-ui,sans-serif;
}

.termos-style-013 {
  max-width:1460px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:32px;
}

.termos-style-014 {
  font:700 17px Inter,sans-serif;
  color:var(--color-text);
  margin-bottom:16px;
}

.termos-style-015 {
  font:400 14px/1.5 Inter,sans-serif;
  color:var(--color-muted);
  margin:0;
  max-width:26ch;
}

.termos-style-016 {
  font:600 13px Inter,sans-serif;
  color:var(--color-muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:16px;
}

.termos-style-017 {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.termos-style-018 {
  font:400 14.5px Inter,sans-serif;
  color:var(--color-text);
  text-decoration:none;
}

.termos-style-019 {
  display:flex;
  flex-direction:column;
  gap:10px;
  font:400 14.5px/1.5 Inter,sans-serif;
  color:var(--color-text);
}

.termos-style-020 {
  color:var(--color-text);
  text-decoration:none;
}

.termos-style-021 {
  color:var(--color-muted);
  font-style:italic;
}

/* ===== 2026-08 visual refresh ===== */
.termos-style-001,
.termos-style-012 { padding-left: clamp(18px, 3.7vw, 58px); padding-right: clamp(18px, 3.7vw, 58px); }
.termos-style-002,
.termos-style-013 { max-width: 1520px; }
.termos-style-003 { max-width: 280px; padding: 20px; border-radius: 18px; background: var(--color-bg-soft); }
.termos-style-005 { max-width: 76ch; }
