/* Data Privacy Agreement: the text (used on the public page and in the register modal) and the public page frame. */

.privacy-agreement { color: #1f2937; font-size: .95rem; line-height: 1.65; }
.privacy-agreement .privacy-title { font-size: 1.35rem; font-weight: 700; color: #132238; margin: 0 0 .25rem; }
.privacy-agreement .privacy-meta { font-size: .82rem; color: #6b7890; margin-bottom: 1.1rem; }
.privacy-agreement h3 { font-size: 1rem; font-weight: 700; color: #224a1e; margin: 1.4rem 0 .45rem; }
.privacy-agreement p { margin: 0 0 .75rem; }
.privacy-agreement ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
.privacy-agreement li { margin-bottom: .35rem; }
.privacy-agreement a { color: #224a1e; font-weight: 600; }

.privacy-page { min-height: 100vh; padding: 2rem 0; background: linear-gradient(180deg, #f6fbf3 0%, #fcfef9 100%); }
.privacy-page-card { background: #fff; border: 1px solid rgba(19, 34, 56, .08); border-radius: 1.25rem; box-shadow: 0 18px 50px rgba(26, 44, 86, .10); overflow: hidden; }
.privacy-page-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.5rem; background: linear-gradient(120deg, #224a1e 0%, #3e9334 100%); color: #fff; }
.privacy-page-head .btn { background: #fff; }
.privacy-page-eyebrow { font-weight: 800; letter-spacing: .02em; }
.privacy-page-system { font-size: .85rem; color: rgba(255, 255, 255, .88); }
.privacy-page-body { padding: 1.5rem 1.75rem 2rem; }

/* Register page: the consent box and the review modal. */
.privacy-consent { border: 1px solid rgba(19, 34, 56, .12); border-radius: .85rem; background: #f8fbf7; padding: 1rem 1.1rem; margin-top: 1.25rem; }
.privacy-consent .form-check-label { font-size: .9rem; }
.privacy-consent .form-check-input:checked { background-color: #224a1e; border-color: #224a1e; }
.privacy-consent-hint { font-size: .82rem; color: #6b7890; margin: .4rem 0 0 1.75rem; }
.privacy-consent-hint.is-done { color: #1f6d2e; font-weight: 600; }
.privacy-read-link { font-weight: 600; color: #224a1e; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; }

#privacyModal .modal-body { max-height: 60vh; overflow-y: auto; padding: 1.25rem 1.5rem; }
#privacyModal .modal-footer { justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.privacy-scroll-note { font-size: .82rem; color: #6b7890; }

/* "Review and agree" screen for signed-in people who have not agreed yet. */
.privacy-gate-intro { background: #f6faf4; border: 1px solid rgba(34, 74, 30, .18); border-left: 4px solid #224a1e; border-radius: .6rem; padding: .85rem 1.1rem; margin-bottom: 1rem; color: #1f2937; }
.privacy-gate-box { max-height: 52vh; overflow-y: auto; border: 1px solid rgba(19, 34, 56, .14); border-radius: .75rem; padding: 1.1rem 1.35rem; background: #fff; }
.privacy-gate-box:focus { outline: 2px solid rgba(34, 74, 30, .35); outline-offset: 2px; }
.privacy-gate-form { margin-top: 1.25rem; border-top: 1px solid rgba(19, 34, 56, .08); padding-top: 1.1rem; }
.privacy-gate-form .form-check-input:checked { background-color: #224a1e; border-color: #224a1e; }
.privacy-gate-form .btn-primary { background: #224a1e; border-color: #224a1e; color: #fff; font-weight: 600; padding: .5rem 1.25rem; }
.privacy-gate-form .btn-primary:hover:not(:disabled), .privacy-gate-form .btn-primary:focus:not(:disabled) { background: #1a3a17; border-color: #1a3a17; }
.privacy-gate-form .btn-primary:disabled { background: #224a1e; border-color: #224a1e; opacity: .45; }
.privacy-gate-form .btn-outline-secondary { padding: .5rem 1.25rem; }

/* Login page: the agreement box above "Sign in with Google", and the locked button. */
.privacy-consent--login { margin: 0 0 .75rem; padding: .7rem .9rem; }
.privacy-consent--login .form-check-label { font-size: .86rem; }
.btn-google.is-locked { opacity: .5; cursor: not-allowed; }
/* Google is the main way in: a taller button with a green edge; the email/password option below is a quieter button that swaps the form in */
.btn-google--primary { padding: .7rem 1rem; font-size: 1rem; border: 1.5px solid #224a1e; box-shadow: 0 4px 14px rgba(34, 74, 30, .14); }
.btn-google--primary:hover, .btn-google--primary:focus { border-color: #224a1e; box-shadow: 0 6px 18px rgba(34, 74, 30, .22); }
/* The other way to sign in: a quiet button that swaps the Google block for the email/password form, and back */
.auth-method-toggle { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .65rem .85rem; background: #fff; color: #1f2937; border: 1.5px solid #dce1e8; border-radius: .45rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .88rem; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.auth-method-toggle:hover { border-color: #224a1e; background: #f6faf5; }
.auth-method-toggle:focus-visible { outline: none; border-color: #224a1e; box-shadow: 0 0 0 3px rgba(34, 74, 30, .14); }
.auth-method-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e8f1e6; color: #224a1e; }
.auth-method-icon svg { width: 1.05rem; height: 1.05rem; }
.auth-method-text { flex: 1 1 auto; }
.auth-method-icon--google { background: #fff; border: 1px solid #e3e8ef; }
.auth-method-icon--google svg { width: 1.05rem; height: 1.05rem; }
.auth-email-form { padding-top: .75rem; }
/* The two sign-in options take each other's place; the new one fades in */
.auth-pane { animation: auth-pane-in .22s ease; }
.auth-pane[hidden] { display: none; }
@keyframes auth-pane-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-pane { animation: none; } }
.auth-google-note { display: flex; align-items: flex-start; gap: .6rem; margin: .75rem 0 0; padding: .6rem .8rem; background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: .45rem; text-align: left; }
.auth-google-note svg { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin-top: .12rem; color: #224a1e; }
.auth-google-note p { margin: 0; font-size: .78rem; line-height: 1.5; color: #55627a; }
.auth-google-note strong { color: #1f2937; font-weight: 600; }
.privacy-modal-body { max-height: 60vh; overflow-y: auto; padding: 1.25rem 1.5rem; }
#loginPrivacyModal .modal-footer { gap: .5rem; }
