/* Shared stylesheet for the static CrisAssistant legal pages.
   Matches the landing's warm-paper look (hsl(34 32% 96%) background,
   Schibsted Grotesk / system font stack, dark slate text). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #F8F5F1;
  color: #262B33;
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0;
  color: #262B33;
  text-decoration: none;
}

.brand:hover { text-decoration: underline; text-underline-offset: 3px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid #E6DFD3;
  border-radius: 999px;
  overflow: hidden;
  background: #FFFFFF;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5A6270;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: #262B33;
  color: #FFFFFF;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.last-updated {
  color: #5A6270;
  font-size: 0.9rem;
  margin: 0 0 28px;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: 0;
  margin: 32px 0 8px;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 0.92rem;
  background: #FFFFFF;
}
th, td {
  border: 1px solid #E6DFD3;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #FFFDF8;
  font-weight: 700;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #000000; }

.notice {
  border: 1px solid #E6DFD3;
  background: #FFFDF8;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.form-box {
  border: 1px solid #E6DFD3;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
}

.form-box .form-heading { font-weight: 600; margin-bottom: 8px; }

.form-box .form-template {
  white-space: pre-line;
  color: #5A6270;
  font-size: 0.95rem;
  margin: 0;
}

.action-panel {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid #D7DDD9;
  border-radius: 8px;
  background: #F8FAF9;
}

.legal-action-form {
  display: grid;
  gap: 1rem;
}

.legal-action-form > label,
.legal-action-form fieldset {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.legal-action-form fieldset {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid #CBD4CF;
  border-radius: 6px;
}

.legal-action-form input,
.legal-action-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #8A9890;
  border-radius: 4px;
  background: #FFFFFF;
  color: #17211B;
  font: inherit;
}

.legal-action-form .choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
}

.legal-action-form .choice input {
  width: auto;
  margin-top: 0.2rem;
}

.legal-action-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 2px solid #173D2A;
  border-radius: 4px;
  background: #173D2A;
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.legal-action-submit:hover,
.legal-action-submit:focus-visible { background: #0F2D1E; color: #FFFFFF; }
.legal-action-submit:disabled { cursor: wait; opacity: 0.7; }
.action-status { min-height: 1.5rem; margin-bottom: 0; font-weight: 600; }
.action-status.success { color: #14532D; }
.action-status.error { color: #9F1239; }
.receipt-text {
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 0.85rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border: 1px solid #CBD4CF;
  border-radius: 4px;
  background: #FFFFFF;
  color: #17211B;
  font: inherit;
  font-size: 0.9rem;
}
.receipt-download { display: inline-block; margin-top: 0.75rem; font-weight: 700; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid #E6DFD3;
  color: #5A6270;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.site-footer a { color: #5A6270; }
.site-footer a[href="/legal/cancel"],
.site-footer a[href="/legal/withdraw-action"] {
  color: #262B33;
  font-weight: 700;
}

[hidden] { display: none !important; }
