.agl-privacy-policy-card {
  margin: 20px 0 8px;
  padding: 20px;
  border: 1px solid var(--line, #e3e2d9);
  border-radius: 22px;
  background: var(--paper, #fffdf8);
  box-shadow: 0 12px 30px rgba(36, 59, 53, 0.08);
}

.agl-privacy-policy-card h2 {
  margin: 0 0 8px;
  color: var(--ink, #243b35);
  font-size: 1.45rem;
}

.agl-privacy-policy-card p {
  margin: 0 0 16px;
  color: var(--muted, #697873);
  line-height: 1.55;
}

.agl-privacy-policy-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--green, #32675a);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.agl-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(20, 42, 36, 0.62);
  overflow: auto;
}

.agl-privacy-modal[hidden] { display: none; }

.agl-privacy-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 24px);
  margin: 0 auto;
  border-radius: 24px;
  background: #fffdf8;
  color: #243b35;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.agl-privacy-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e2d9;
  background: #f3f7f4;
}

.agl-privacy-dialog-head span { color: #e2745b; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.agl-privacy-dialog-head h2 { margin: 2px 0 0; font-size: 1.55rem; }
.agl-privacy-dialog-head button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: #e8efeb; color: #243b35; font-size: 28px; cursor: pointer; }
.agl-privacy-dialog-body { max-height: calc(100vh - 120px); padding: 20px; overflow-y: auto; line-height: 1.58; }
.agl-privacy-dialog-body h3 { margin: 22px 0 6px; font-size: 1.12rem; }
.agl-privacy-dialog-body p { margin: 0 0 12px; }
.agl-privacy-public-link { display: inline-flex; margin-top: 10px; padding: 12px 16px; border-radius: 13px; background: #32675a; color: white; font-weight: 800; text-decoration: none; }

.agl-privacy-policy-link:focus-visible {
  outline: 3px solid #e77c63;
  outline-offset: 3px;
}
