/* Standalone access and legal pages; intentionally independent of panel styles. */
:root {
  color-scheme: light;
  --access-ink: #18231f;
  --access-muted: #626f68;
  --access-line: #dce3df;
  --access-accent: #087450;
  --access-dark: #141a1e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--access-ink); background: #f3f5f4; }
a { color: var(--access-accent); text-underline-offset: 3px; }
a:hover { color: #055b3e; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #17855f; outline-offset: 3px; }
.access-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.access-header { background: var(--access-dark); border-bottom: 3px solid var(--access-accent); color: #fff; }
.access-header-inner { max-width: 1160px; margin: auto; min-height: 80px; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.access-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.access-brand:hover { color: inherit; }
.access-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid #ffffff24; border-radius: 6px; flex: none; }
.access-brand-text { min-width: 0; }
.access-brand-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.access-brand-caption { display: block; margin-top: 2px; color: #b3c4ba; font-size: 12px; }
.access-context { display: inline-flex; gap: 8px; align-items: center; color: #c4d2ca; font-size: 12px; flex: none; }
.access-main { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.access-form-panel { width: 100%; max-width: 440px; padding: 32px; background: #fff; border: 1px solid var(--access-line); border-radius: 8px; box-shadow: 0 8px 24px #18231f06; }
.access-form-panel h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.access-subtitle { color: var(--access-muted); margin: 0 0 26px; }
.access-field { margin-bottom: 18px; }
.access-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.access-input { position: relative; display: flex; align-items: center; }
.access-input > .bi { position: absolute; left: 14px; pointer-events: none; color: #76827b; font-size: 17px; }
.access-input input { min-width: 0; width: 100%; height: 48px; border: 1px solid #cdd6d0; border-radius: 6px; background: #fff; color: var(--access-ink); padding: 10px 44px 10px 42px; font-size: 16px; }
.access-input input::placeholder { color: #7b867f; opacity: 1; }
.access-input input:focus { border-color: var(--access-accent); outline: 2px solid #08745024; outline-offset: 1px; }
.access-password-toggle { position: absolute; right: 3px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 4px; color: #53645a; font-size: 18px; }
.access-password-toggle:hover { color: var(--access-accent); background: #eff5f1; }
.access-form-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.access-remember { display: inline-flex; align-items: center; gap: 9px; min-height: 28px; cursor: pointer; font-size: 13px; }
.access-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--access-accent); flex: none; }
.access-submit { width: 100%; min-height: 48px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--access-accent); border-radius: 6px; background: var(--access-accent); color: #fff; font-weight: 600; }
.access-submit:hover { background: #055b3e; border-color: #055b3e; }
.access-submit:active { background: #044d34; }
.access-form-links { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e7ece9; text-align: center; color: var(--access-muted); font-size: 13px; }
.access-form-links a { font-weight: 600; }
.access-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 20px; border: 1px solid #edc6c3; border-radius: 6px; background: #fff4f2; color: #a12c24; overflow-wrap: anywhere; }
.access-alert .bi { flex: none; }
.access-alert-success { border-color: #b6d7c6; background: #edf8f1; color: #146544; }
.access-footer { max-width: 1160px; width: 100%; margin: 0 auto; padding: 20px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--access-muted); font-size: 12px; }
.access-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.access-footer a { color: var(--access-muted); padding: 5px 0; }
.access-footer a:hover { color: var(--access-accent); }
.legal-page { background: #fff; }
.legal-toolbar { display: flex; align-items: center; gap: 16px; flex: none; }
.legal-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; color: #fff; text-decoration: none; background: var(--access-accent); border: 1px solid #25815f; border-radius: 6px; font-weight: 600; }
.legal-login:hover { color: #fff; background: #055b3e; }
.legal-language { position: relative; display: flex; align-items: center; gap: 8px; }
.legal-language > .bi { color: #c4d2ca; }
.legal-language select { max-width: 150px; min-height: 40px; padding: 8px; border: 1px solid #4e5e54; border-radius: 6px; background: var(--access-dark); color: #fff; font-size: 13px; }
.legal-language button { min-width: 40px; min-height: 40px; }
.legal-layout { width: 100%; max-width: 1160px; margin: 0 auto; padding: 48px 32px 64px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; flex: 1; }
.legal-sidebar { align-self: start; position: sticky; top: 24px; }
.legal-nav-title { color: var(--access-muted); margin: 0 0 12px; font-size: 12px; font-weight: 600; }
.legal-doc-nav { display: flex; flex-direction: column; gap: 4px; }
.legal-doc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; border-radius: 4px; color: #4a5c51; font-size: 13px; }
.legal-doc-nav a:hover { background: #f3f5f4; }
.legal-doc-nav [aria-current="page"] { color: #086343; background: #eaf4ee; font-weight: 600; }
.legal-toc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--access-line); }
.legal-toc a { display: block; margin: 12px 0; color: var(--access-muted); font-size: 13px; text-decoration: none; }
.legal-toc a:hover { color: var(--access-accent); text-decoration: underline; }
.legal-document { min-width: 0; max-width: 760px; }
.legal-document h1 { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--access-line); font-size: 32px; line-height: 1.25; }
.legal-document h2 { font-size: 19px; line-height: 1.4; margin: 32px 0 14px; }
.legal-copy { color: #47564d; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-copy p { margin: 0 0 18px; }
.legal-copy strong { color: var(--access-ink); font-weight: 600; }
.legal-copy ul { margin: 14px 0 22px; padding-left: 22px; }
.legal-copy li { margin-bottom: 10px; padding-left: 4px; }
.legal-copy li::marker { color: var(--access-accent); }
.legal-back { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--access-line); }
.legal-back a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; font-weight: 600; }
.legal-page > .access-footer { max-width: none; border-top: 1px solid var(--access-line); background: #f3f5f4; }
.legal-footer-inner { width: 100%; max-width: 1096px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .access-header-inner { padding: 14px 20px; gap: 16px; }
  .access-context { display: none; }
  .access-main { padding: 32px 20px; }
  .access-footer { padding: 20px; justify-content: center; text-align: center; }
  .access-footer nav { justify-content: center; }
  .legal-layout { padding: 28px 20px 40px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-sidebar { position: static; border-bottom: 1px solid var(--access-line); padding-bottom: 16px; }
  .legal-nav-title, .legal-toc { display: none; }
  .legal-doc-nav { flex-direction: row; flex-wrap: wrap; }
  .legal-document { max-width: none; }
  .legal-document h1 { font-size: 27px; margin-bottom: 24px; padding-bottom: 20px; }
  .legal-toolbar { gap: 10px; }
  .legal-page .access-header-inner { flex-wrap: wrap; }
  .legal-page .access-brand { flex: 1 1 210px; }
  .legal-footer-inner { justify-content: center; }
}
@media (max-width: 440px) {
  .access-header-inner { padding: 14px 16px; }
  .access-brand-name { font-size: 16px; }
  .access-main { padding: 24px 12px; }
  .access-form-panel { padding: 24px 20px; }
  .access-form-panel h1 { font-size: 24px; }
  .access-footer { padding: 16px; }
  .legal-layout { padding-left: 16px; padding-right: 16px; }
  .legal-toolbar { width: 100%; justify-content: space-between; }
}
