.conflua-faq,
.conflua-footer,
.legal-dialog,
.conflua-cookie-notice,
.legal-consent-block,
.legal-compact-links {
  box-sizing: border-box;
}

.conflua-footer-inner {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.conflua-faq {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  border-top: 1px solid #dce9e1;
  background:
    radial-gradient(circle at 15% 10%, rgba(143, 255, 51, .12), transparent 27%),
    linear-gradient(180deg, #f8fcf9 0%, #edf7f1 100%);
  color: #173f32;
}

.conflua-faq-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.conflua-faq-head h2,
.conflua-faq-head p {
  margin: 0;
}

.conflua-faq-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.conflua-faq-head p {
  margin-top: 10px;
  color: #62756c;
}

.conflua-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.conflua-faq details {
  overflow: hidden;
  border: 1px solid #d9e8df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(23, 63, 50, .06);
}

.conflua-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px;
  list-style: none;
  color: #173f32;
  font-weight: 900;
  cursor: pointer;
}

.conflua-faq summary::-webkit-details-marker { display: none; }

.conflua-faq summary span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #dff4e7;
  color: #1f5c45;
  font-size: 22px;
  transition: transform .2s ease;
}

.conflua-faq details[open] summary span { transform: rotate(45deg); }

.conflua-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #5c6f66;
  line-height: 1.65;
}

.conflua-footer {
  position: relative;
  z-index: 2;
  padding: 52px 0 18px;
  background: #153d30;
  color: #eef8f2;
}

.conflua-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr 1.2fr;
  gap: 36px;
}

.conflua-footer-brand {
  display: grid;
  align-content: start;
  gap: 12px;
}

.conflua-footer-brand strong {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em;
}

.conflua-footer-brand p,
.conflua-footer-brand span {
  margin: 0;
  color: #b9d2c5;
  line-height: 1.55;
}

.conflua-footer-brand span { font-size: 12px; }

.conflua-footer nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.conflua-footer h3 {
  margin: 0 0 8px;
  color: #8fff33;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.conflua-footer button,
.conflua-footer a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #edf7f1;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.conflua-footer button:hover,
.conflua-footer button:focus-visible,
.conflua-footer a:hover,
.conflua-footer a:focus-visible {
  color: #8fff33;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.conflua-footer-bottom {
  display: flex;
  width: min(1220px, calc(100% - 40px));
  margin: 42px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  justify-content: space-between;
  gap: 18px;
  color: #9fb8ab;
  font-size: 12px;
}

.legal-consent-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 10px 0;
  padding: 16px;
  border: 1px solid #d6e7dd;
  border-radius: 16px;
  background: #f8fcfa;
}

.legal-consent-block legend {
  padding: 0 7px;
  color: #1f5c45;
  font-weight: 900;
}

.legal-consent-block > p {
  margin: 2px 0 0;
  color: #65776e;
  font-size: 12px;
  line-height: 1.5;
}

.legal-consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
}

.legal-consent-row input {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  margin: 2px 0 0 !important;
  accent-color: #1f6b4d;
}

.legal-consent-row > span {
  display: block;
  min-width: 0;
  color: #314e42;
  line-height: 1.45;
}

.legal-consent-row button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f6b4d;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-consent-row small {
  display: inline;
  margin-left: 5px;
  color: #7b8b83;
  white-space: nowrap;
}

.legal-compact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  color: #62756c;
  font-size: 12px;
}

.legal-compact-links button,
.legal-compact-links a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f6b4d;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #173f32;
}

.legal-dialog::backdrop {
  background: rgba(9, 31, 23, .67);
  backdrop-filter: blur(7px);
}

.legal-dialog-card {
  position: relative;
  overflow: auto;
  max-height: calc(100dvh - 32px);
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 36, 25, .28);
}

.legal-dialog-card > h2 {
  margin: 4px 52px 12px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.legal-dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #e8f4ed;
  color: #1f5c45;
  font-size: 26px;
  cursor: pointer;
}

.legal-document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.legal-document-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f1;
  color: #315c49;
  font-size: 12px;
  font-weight: 800;
}

.legal-document-content {
  color: #40584d;
  line-height: 1.7;
}

.legal-document-content h3 {
  margin: 26px 0 7px;
  color: #173f32;
  font-size: 18px;
}

.legal-document-content p { margin: 0 0 12px; }

.legal-operator-warning {
  display: grid;
  gap: 7px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #ecc780;
  border-radius: 16px;
  background: #fff8e9;
  color: #704f16;
}

.legal-operator-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.legal-operator-card div {
  padding: 12px;
  border: 1px solid #dce9e1;
  border-radius: 13px;
  background: #f8fcfa;
}

.legal-operator-card dt { color: #6b7c73; font-size: 12px; }
.legal-operator-card dd { margin: 4px 0 0; font-weight: 800; }

.legal-support-card {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.legal-support-card div {
  padding: 14px;
  border: 1px solid #dce9e1;
  border-radius: 13px;
  background: #f8fcfa;
}

.legal-support-card dt { color: #6b7c73; font-size: 12px; }
.legal-support-card dd { margin: 4px 0 0; font-weight: 900; }
.legal-support-card a { color: #1f6b4d; overflow-wrap: anywhere; }

.legal-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f6b4d;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-center-content,
.privacy-center-section,
.privacy-history-list,
.privacy-request-list {
  display: grid;
  gap: 12px;
}

.privacy-center-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dce9e1;
  border-radius: 18px;
  background: #fbfdfc;
}

.privacy-center-section h3,
.privacy-center-section p { margin: 0; }

.privacy-center-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.privacy-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 13px;
  background: #edf6f1;
}

.privacy-history-row div { display: grid; gap: 3px; }
.privacy-history-row span,
.privacy-history-row time,
.privacy-request-row time { color: #6c7c74; font-size: 12px; }
.privacy-history-row b { padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.privacy-history-row .is-granted { background: #d8f3e2; color: #1d6748; }
.privacy-history-row .is-withdrawn { background: #fbe1e1; color: #9d2c2c; }

.privacy-marketing-state {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e3f4e9;
  color: #1f6548;
  font-size: 12px;
  font-weight: 900;
}

.privacy-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.privacy-request-grid label {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
  background: #eef7f2;
}

.privacy-request-grid label > span { font-weight: 900; }
.privacy-request-grid textarea { width: 100%; box-sizing: border-box; resize: vertical; }

.privacy-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 13px;
  border-radius: 13px;
  background: #eef7f2;
}

.privacy-request-row p,
.privacy-request-row time { grid-column: 1 / -1; }
.privacy-admin-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-empty { padding: 14px; border-radius: 12px; background: #eef7f2; color: #66786f; }

.production-privacy-button {
  width: auto !important;
  min-width: 42px;
  padding-inline: 8px !important;
  color: #1f5c45;
  font-size: 11px;
  font-weight: 950;
}

.conflua-cookie-notice {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(680px, calc(100vw - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #d7e7de;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  color: #173f32;
  box-shadow: 0 20px 70px rgba(12, 48, 34, .22);
  backdrop-filter: blur(12px);
}

.conflua-cookie-notice strong { display: block; margin-bottom: 4px; }
.conflua-cookie-notice p { margin: 0; color: #61736a; font-size: 13px; line-height: 1.5; }
.conflua-cookie-notice > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }

@media (max-width: 900px) {
  .conflua-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conflua-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .conflua-footer-inner,
  .conflua-footer-bottom { width: min(100% - 24px, 1220px); }
  .conflua-faq { padding: 48px 0; }
  .conflua-faq-head { align-items: start; flex-direction: column; }
  .conflua-faq-grid,
  .conflua-footer-grid,
  .legal-operator-card,
  .privacy-request-grid { grid-template-columns: 1fr; }
  .conflua-footer-brand { grid-column: auto; }
  .conflua-footer-bottom { align-items: start; flex-direction: column; }
  .legal-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .legal-dialog-card { max-height: calc(100dvh - 16px); padding: 24px 18px; }
  .privacy-history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .privacy-history-row time { grid-column: 1 / -1; }
  .conflua-cookie-notice { right: 8px; bottom: 76px; width: calc(100vw - 16px); align-items: stretch; flex-direction: column; }
  .conflua-cookie-notice > div:last-child > * { flex: 1 1 0; }
}
