/* 2026-11-04: Privacy Policy, Terms of Service and Contact pages (resources/views/legal/*). Login background + logo
   come from css/login.php; the terms text reuses the registration popup's .registration_terms_body rules. */
/* css/login.php gives .main a fixed 100vh: the card is taller than a screen, so the page must grow with it and leave room for the absolute guest footer */
.legal_main { height: auto; min-height: 100vh; padding: 0 16px 130px; box-sizing: border-box; }
.legal_card {
	position: relative; z-index: 3;
	width: 100%; max-width: 860px; margin: 16px auto 0; padding: 28px 44px 36px; box-sizing: border-box;
	background: rgba(255, 255, 255, 0.97); border-radius: 25px; box-shadow: 0 18px 40px rgba(13, 79, 160, 0.22);
	font-family: 'Roboto', Arial, sans-serif; color: #333333;
}
/* ver 2 (2026-11-04, owner): a round × at the top right of the card closes the page and returns to the sign-in */
.legal_close, .legal_close:visited { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 28px; line-height: 1; font-weight: 300; color: #8a8a8a; text-decoration: none; transition: background 120ms ease, color 120ms ease; }
.legal_close:hover, .legal_close:focus-visible { background: #f0f4f9; color: #0d4fa0; }
.legal_close:focus-visible { outline: 2px solid #ffca50; outline-offset: 2px; }
.legal_nav { padding: 0 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; font-family: 'Dosis', Arial, sans-serif; font-size: 16px; font-weight: 600; color: #9a9a9a; }
.legal_nav a, .legal_nav a:visited { color: #0d4fa0; text-decoration: none; padding: 2px 4px; border-bottom: 2px solid transparent; }
.legal_nav a:hover, .legal_nav a:focus-visible { border-bottom-color: #2aa2dd; }
.legal_nav a.legal_nav_current { color: #248abc; border-bottom-color: #ffca50; }
.legal_head { text-align: center; margin-bottom: 22px; }
.legal_title { margin: 0 0 8px; font-family: 'Dosis', Arial, sans-serif; font-size: 34px; line-height: 1.15; font-weight: 700; color: #0d4fa0; }
.legal_lead { margin: 0 0 6px; font-family: 'Dosis', Arial, sans-serif; font-size: 18px; font-weight: 600; color: #555555; }
.legal_updated { margin: 0; font-size: 13px; color: #888888; }
.legal_body { font-size: 15px; line-height: 1.65; }
.legal_body h4 { margin: 24px 0 8px; font-family: 'Dosis', Arial, sans-serif; font-size: 20px; font-weight: 700; color: #0d4fa0; }
.legal_body p { margin: 0 0 12px; }
.legal_body ul { margin: 0 0 12px 22px; padding: 0; }
.legal_body li { margin: 0 0 6px; }
.legal_body a, .legal_body a:visited { color: #248abc; text-decoration: underline; }
.legal_intro { font-size: 16px; }
/* ver 3 (2026-11-04, owner): the Terms text uses the page typography (.legal_body), not the popup's; the popup-only
   classes of the shared text are neutralised here */
.legal_terms_body { max-height: none; overflow: visible; padding: 0; }
.legal_body .registration_terms_intro { font-style: normal; font-size: 16px; margin-top: 0 !important; }
.legal_body .registration_terms_footer { margin-top: 20px !important; font-size: 14px; color: #777777; }
.legal_contact_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 4px 0 8px; }
.legal_contact_block { padding: 18px 20px; background: #f3f7fc; border-radius: 14px; }
.legal_contact_block h4 { margin-top: 0; }
.legal_contact_company { font-family: 'Dosis', Arial, sans-serif; font-size: 20px; font-weight: 700; color: #333333; }
.legal_contact_label { display: inline-block; min-width: 64px; font-weight: 700; color: #555555; }
.legal_contact_map { font-weight: 700; }
/* ver 4 (2026-11-04): Instagram / Facebook icons on the Contact page */
.legal_social { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.legal_social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #0d4fa0; color: #fff; text-decoration: none; transition: background 120ms ease; }
.legal_social a:hover, .legal_social a:focus-visible { background: #248abc; }
.legal_social a svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
	.legal_main { padding: 0 12px 150px; }
	.legal_card { margin-top: 10px; padding: 22px 18px 26px; border-radius: 18px; }
	.legal_close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 24px; }
	.legal_nav { padding: 0 28px; }
	.legal_title { font-size: 27px; }
	.legal_lead { font-size: 16px; }
	.legal_contact_grid { grid-template-columns: 1fr; }
}
