/* Keep the existing red, white and gold palette. Only layout and sizing change. */
body:has(.legal-compact) #main,body:has(.login-page) #main{width:100%;max-width:none;padding:0 20px 20px;min-height:0}
body:has(.legal-compact) .page-shortcuts,body:has(.login-page) .page-shortcuts{margin:0 auto;padding:8px 20px;max-width:1100px}
body:has(.legal-compact)>footer,body:has(.login-page)>footer{display:none}
body:has(.legal-compact) .mobile-nav,body:has(.login-page) .mobile-nav{display:none}
body:has(.legal-compact),body:has(.login-page){padding-bottom:0}
.legal-compact{max-width:1040px;margin:8px auto 0}
.legal-heading{padding:0 2px 18px}
.legal-heading .eyebrow{font-size:11px!important;letter-spacing:.12em;margin:0 0 6px!important}
.legal-heading h1{font-size:clamp(25px,2.4vw,34px)!important;line-height:1.15;margin:0!important}
html:root[lang] body.baazar-theme #main .legal-card{padding:28px!important;border-radius:20px!important;margin:0!important}
.legal-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:start}
.legal-index{min-width:0;padding-right:28px;border-right:1px solid #e7dfd3}
html:root[lang] body.baazar-theme #main .legal-card h2{font-size:19px!important;line-height:1.3;margin:0 0 8px!important}
html:root[lang] body.baazar-theme #main .legal-card p{font-size:13px!important;line-height:1.55;margin:8px 0!important}
html:root[lang] body.baazar-theme #main button.legal-document-link{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;border:0!important;border-bottom:1px solid #e7dfd3!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;font-size:13px!important;line-height:1.4;font-weight:600;min-height:44px}
.legal-document-link>span:last-child{flex-shrink:0;font-size:18px}
.legal-choice .form{gap:13px;max-width:none;margin:14px 0 0}
html:root[lang] body.baazar-theme #main .legal-choice label.check{display:flex!important;align-items:flex-start!important;gap:10px!important;font-size:13px!important;line-height:1.5!important;margin:0;padding:0;font-weight:400}
.legal-choice label.check input{flex:0 0 17px;width:17px!important;height:17px!important;margin:2px 0 0!important}
html:root[lang] body.baazar-theme #main .legal-choice button{font-size:14px!important;padding:10px 16px!important;border-width:2px!important;min-height:42px}
.legal-choice .form>button{width:100%;margin-top:3px}
.legal-more{display:flex;flex-wrap:wrap;gap:8px 22px;border-top:1px solid #e7dfd3;padding-top:16px;margin-top:22px}
.legal-more>details{font-size:12px;line-height:1.5;min-width:0}
.legal-more>details[open]{flex-basis:100%}
html:root[lang] body.baazar-theme #main .legal-more summary{font-size:12px!important;cursor:pointer;padding:3px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.legal-more form{max-width:600px;margin-top:14px}
.legal-actions{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:16px}
html:root[lang] body.baazar-theme #main .legal-actions button{font-size:12px!important;padding:5px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:30px;text-decoration:underline;text-underline-offset:4px}
html:root[lang] body.baazar-theme dialog.legal-reader{width:min(720px,calc(100vw - 32px))!important;max-width:720px!important;max-height:85dvh;padding:0!important;border-radius:18px!important}
.legal-reader::backdrop{background:#0008}
.legal-reader-head{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;padding:22px 24px 16px;border-bottom:1px solid #e7dfd3}
.legal-reader-head h2{font-size:20px!important;line-height:1.35;margin:0!important}
.legal-reader-head button{font-size:24px!important;line-height:1;width:36px;height:36px;padding:0!important;flex-shrink:0}
.legal-reader-content{overflow:auto;max-height:calc(85dvh - 110px);padding:6px 24px 24px}
.legal-reader-content p{font-size:14px!important;line-height:1.7!important}
.legal-reader-content small{display:block;overflow-wrap:anywhere;font-size:10px!important;margin-top:20px}
html:root[lang] body.baazar-theme #main .login-page{max-width:1000px;margin:10px auto 0;padding:0}
html:root[lang] body.baazar-theme #main .login-page .page-title{font-size:32px!important;margin:6px 0 22px!important}
.login-page>.eyebrow{font-size:11px!important;margin:0!important}
.login-page .login-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
html:root[lang] body.baazar-theme #main .login-page .panel{padding:22px!important;margin:0!important}
.login-page .login-options .panel{display:flex;flex-direction:column;align-items:flex-start}
html:root[lang] body.baazar-theme #main .login-page h2{font-size:20px!important;margin:0 0 10px!important}
html:root[lang] body.baazar-theme #main .login-page p{font-size:14px!important;line-height:1.5}
.login-page .login-options p{flex:1;margin:0 0 20px!important}
html:root[lang] body.baazar-theme #main .login-page button{font-size:14px!important;padding:9px 16px!important;border-width:2px!important}
.login-page .login-options button{width:100%}
html:root[lang] body.baazar-theme #main .login-page>.panel{margin-top:16px!important;padding:18px 22px!important}
.login-page>.panel p{max-width:760px;margin:6px 0 14px!important}
.login-page>.panel button+button{margin-left:10px}
html:root[lang] body.baazar-theme #modal:has(#auth-form){width:min(500px,calc(100vw - 28px))!important;max-width:500px!important;padding:24px!important;max-height:94dvh}
#modal:has(#auth-form) .auth-photo-collage{display:none!important}
#modal:has(#auth-form) h2{font-size:24px!important;margin:0 20px 10px 0!important}
#modal:has(#auth-form) p,#modal:has(#auth-form) label,#modal:has(#auth-form) summary{font-size:13px!important;line-height:1.45}
#modal:has(#auth-form) .form{gap:10px;margin:16px 0 10px}
#modal:has(#auth-form) input:not([type=checkbox]){padding:9px 11px!important;font-size:15px!important;min-height:40px}
#modal:has(#auth-form) .panel{padding:10px!important;margin:0!important}
#modal:has(#auth-form) button{font-size:13px!important;padding:8px 12px!important}
#modal:has(#auth-form) .check{gap:8px!important;margin:0!important}
@media(max-width:700px){.legal-grid{grid-template-columns:1fr;gap:20px}.legal-index{border-right:0;border-bottom:1px solid #e7dfd3;padding:0 0 18px}.legal-compact{margin-top:4px}.legal-heading{padding-bottom:14px}html:root[lang] body.baazar-theme #main .legal-card{padding:20px!important}.legal-more{gap:10px;margin-top:18px}.legal-actions{gap:20px}.login-page .login-options{grid-template-columns:1fr}.login-page .login-options .panel{display:grid;grid-template-columns:1fr auto;column-gap:12px}.login-page .login-options .panel h2{grid-column:1}.login-page .login-options .panel p{grid-column:1;margin:0!important}.login-page .login-options button{grid-column:2;grid-row:1/3;align-self:center}.legal-reader-head{padding:18px}.legal-reader-content{padding:4px 18px 20px}}
html:root[lang] body.baazar-theme:has(.legal-compact)>header,html:root[lang] body.baazar-theme:has(.login-page)>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding:12px 28px!important;min-height:72px!important;height:auto!important}
body:has(.legal-compact)>header .brand-logo,body:has(.login-page)>header .brand-logo{width:48px!important;height:48px!important}
body:has(.legal-compact)>header nav,body:has(.login-page)>header nav{margin:0!important;width:auto!important}
html:root[lang] body.baazar-theme #main .legal-more>details{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;min-height:0!important}
html:root[lang] body.baazar-theme #main .legal-more summary{margin:0!important;min-height:22px!important;line-height:1.6!important}
html:root[lang] body.baazar-theme #main .legal-more{padding-top:12px!important;margin-top:16px!important;min-height:0!important}
html:root[lang] body.baazar-theme #main .legal-actions{margin-top:12px!important}
.login-company a{color:inherit;text-underline-offset:3px}
@media(max-width:700px){html:root[lang] body.baazar-theme:has(.legal-compact)>header,html:root[lang] body.baazar-theme:has(.login-page)>header{padding:10px 18px!important}.legal-heading .eyebrow{display:none}}
html:root[lang] body.baazar-theme:has(.legal-compact)>header,html:root[lang] body.baazar-theme:has(.login-page)>header{flex-wrap:nowrap!important;height:80px!important;min-height:80px!important}
html:root[lang] body.baazar-theme:has(.legal-compact)>header .brand,html:root[lang] body.baazar-theme:has(.login-page)>header .brand{display:flex!important;align-items:center!important;gap:12px!important;flex:0 1 auto!important}
html:root[lang] body.baazar-theme:has(.legal-compact)>header .region-row,html:root[lang] body.baazar-theme:has(.login-page)>header .region-row{width:auto!important;flex:1 1 auto!important;justify-content:flex-end!important;height:auto!important;margin:0!important;padding:0!important;border:0!important}
html:root[lang] body.baazar-theme:has(.legal-compact)>header .brand-logo,html:root[lang] body.baazar-theme:has(.login-page)>header .brand-logo{width:48px!important;height:48px!important;max-height:48px!important;object-fit:contain}
#modal:has(#auth-form) .modal-home{display:none!important}
#modal:has(#auth-form) .modal-brand{margin:0 42px 18px 0!important;padding:0!important;min-height:0!important;gap:12px!important}
#modal:has(#auth-form) .modal-brand img{width:46px!important;height:46px!important}
#modal:has(#auth-form) .modal-brand small{display:none!important}
#modal:has(#auth-form) .form-error:empty{display:none!important}
html:root[lang] body.baazar-theme #modal:has(#auth-form input[name=name]){width:min(620px,calc(100vw - 28px))!important;max-width:620px!important}
#auth-form:has(input[name=name]){display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px 14px!important}
#auth-form:has(input[name=name])>label:not(.check){min-width:0;gap:4px!important}
#auth-form:has(input[name=name])>:is(.check,.panel,p,button){grid-column:1/-1}
#modal:has(#auth-form) .form-note{margin:0!important}
#modal:has(#auth-form) #switch-auth,#modal:has(#auth-form) #forgot-password{border:0!important;box-shadow:none!important;padding:4px 0!important;margin:5px 12px 0 0!important;text-decoration:underline;text-underline-offset:3px}
@media(max-width:540px){#auth-form:has(input[name=name]){grid-template-columns:1fr!important}}

html:root[lang] body.baazar-theme #modal:has(#auth-form){padding:20px!important}
#modal:has(#auth-form) .modal-brand{margin-bottom:12px!important}
#auth-form:has(input[name=name]){gap:8px 14px!important}
