:root{
  --ag-bg:#1D1D1B;
  --ag-footer:#42423E;
  --ag-orange:#EF7D00;
  --ag-orange-btn:#ff9518;
  --ag-muted:#9D9D9C;
  --ag-text:#222;
  --ag-page:#f7f6f4;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.ag-legal{
  margin:0;
  font-family:"Montserrat",system-ui,-apple-system,sans-serif;
  color:var(--ag-text);
  background:var(--ag-page);
  line-height:1.65;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:var(--ag-orange);text-decoration:none}
a:hover{text-decoration:underline}

.ag-header{
  background:rgba(29,29,27,.95);
  color:#fff;
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ag-header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.ag-logo img{
  display:block;
  height:48px;
  width:auto;
}
.ag-header-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 18px;
}
.ag-header-nav a{
  color:var(--ag-muted);
  font-size:13px;
  font-weight:500;
  text-decoration:none;
}
.ag-header-nav a:hover,
.ag-header-nav a.is-active{
  color:var(--ag-orange);
}
.ag-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.ag-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:2px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  text-decoration:none !important;
  border:none;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.ag-btn-primary{
  background:var(--ag-orange-btn);
  color:#fff !important;
}
.ag-btn-primary:hover{background:var(--ag-orange);color:#fff !important}
.ag-btn-ghost{
  background:transparent;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.35);
}
.ag-btn-ghost:hover{border-color:var(--ag-orange);color:var(--ag-orange) !important}

.ag-main{
  flex:1;
  width:100%;
  max-width:800px;
  margin:0 auto;
  padding:40px 20px 64px;
}
.ag-main h1{
  font-size:clamp(1.6rem,3vw,2rem);
  font-weight:800;
  line-height:1.2;
  margin:0 0 .35em;
  color:var(--ag-bg);
}
.ag-main .meta{color:#666;margin:0 0 1.5em;font-size:.95rem}
.ag-main h2{
  font-size:1.15rem;
  font-weight:800;
  margin:1.75em 0 .6em;
  color:var(--ag-bg);
}
.ag-main p,.ag-main li{font-size:.98rem}
.ag-main ul{padding-left:1.2em}
.ag-main table{
  width:100%;
  border-collapse:collapse;
  margin:1em 0;
  font-size:.92rem;
  background:#fff;
}
.ag-main th,.ag-main td{
  border:1px solid #e2e0dc;
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}
.ag-main th{background:#eeeae4;font-weight:700}
.ag-back-row{
  margin:0 0 28px;
}
.ag-contact-card{
  background:#fff;
  border:1px solid #e2e0dc;
  padding:24px;
  border-radius:4px;
}
.ag-contact-card p{margin:.55em 0}

.ag-footer{
  background:var(--ag-footer);
  color:#fff;
  margin-top:auto;
}
.ag-footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:48px 20px 28px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:28px 32px;
}
.ag-footer h3{
  margin:0 0 12px;
  font-size:15px;
  color:var(--ag-orange-btn);
  font-weight:800;
}
.ag-footer p,.ag-footer li,.ag-footer a{
  color:#fff;
  font-size:14px;
  line-height:1.55;
}
.ag-footer a{text-decoration:none}
.ag-footer a:hover{color:var(--ag-orange-btn);text-decoration:underline}
.ag-footer ul{list-style:none;margin:0;padding:0}
.ag-footer li{margin:0 0 8px}
.ag-footer-brand img{height:44px;width:auto;margin-bottom:10px}
.ag-footer-brand .tag{color:var(--ag-muted);font-size:13px}
.ag-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  max-width:1100px;
  margin:0 auto;
  padding:16px 20px 28px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:var(--ag-muted);
}
.ag-footer-bottom a{color:#fff;margin-right:12px;font-size:13px}
.ag-footer-bottom a:hover{color:var(--ag-orange-btn)}

@media (max-width:640px){
  .ag-logo img{height:40px}
  .ag-header-nav{width:100%;order:3}
  .ag-header-actions{margin-left:auto}
}
