.terms-page{padding-block:30px}.terms-page .login-shell{max-width:650px;transform:none}.terms-page .login-shell main{max-width:none}.terms-page .logo{width:250px}.terms-document{max-height:44vh;overflow:auto;overscroll-behavior:contain;padding:0 12px 0 0;-webkit-user-select:text;user-select:text}.terms-document h2{font:600 16px/1.5 Arial,sans-serif;margin:0 0 16px}.terms-document p{font:14px/1.75 Arial,sans-serif;margin:0 0 16px}.terms-check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5}.terms-check input{width:18px;min-height:18px;height:18px;padding:0;accent-color:#ad747b;flex-shrink:0}.terms-page form{margin-top:24px}.terms-page button:disabled{opacity:.45;cursor:default}.terms-page [hidden]{display:none!important}.site-terms-footer{position:relative;z-index:1;text-align:center;padding:18px 16px;font:12px/1.5 Arial,sans-serif}.login-page .site-terms-footer{position:fixed;bottom:0;left:0;right:0;padding:8px;pointer-events:none}.site-terms-link{color:inherit;opacity:.65;text-underline-offset:3px;pointer-events:auto}.site-terms-link:hover{opacity:1}.terms-page .subscription-back{margin-top:18px}
/* Keep the brand above the card edge, as on the login. */
.terms-page .logo{width:320px;max-width:85%;margin-bottom:-24px;z-index:2}
.login-page .site-terms-footer{position:static;padding:18px 0 0;pointer-events:auto}
.site-terms-footer .site-terms-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 16px;border:1px solid #ad747b55;border-radius:10px;color:inherit;opacity:1;font:500 12px/1.4 Arial,sans-serif;text-decoration:none;transition:background-color .18s,border-color .18s}
.site-terms-footer .site-terms-link:hover{background:#ad747b15;border-color:#bf939d}
.site-terms-footer .site-terms-link:focus-visible{outline:2px solid #ba8a80;outline-offset:3px}
@media(max-width:650px){.terms-page .logo{width:280px}}

.header-terms{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid #ad747b66;border-radius:10px;color:inherit;text-decoration:none;font-size:12px;white-space:nowrap;transition:background .18s,border-color .18s}.header-terms:hover{background:#ad747b20;border-color:#bf939d}.header-terms:focus-visible{outline:2px solid #ba8a80;outline-offset:3px}@media(max-width:540px){.header-actions{flex-wrap:wrap}.header-terms{padding:8px;font-size:11px}}

.themes .theme-terms-link{display:inline-flex;align-items:center;align-self:stretch;padding:0 12px;margin-right:3px;border-right:1px solid #ffffff26;border-radius:999px 0 0 999px;color:#c9c4cb;text-decoration:none;font:500 12px/1.4 Arial,sans-serif;transition:background-color .18s,color .18s}.themes .theme-terms-link:hover{background:#ffffff0d;color:#fff}.themes .theme-terms-link:focus-visible{outline:2px solid #ba8a80;outline-offset:2px}body[data-theme="light"] .themes .theme-terms-link{color:#76665f;border-right-color:#d9ccc5}body[data-theme="light"] .themes .theme-terms-link:hover{background:#eadbd2;color:#4c1712}

.library-page .library-header{padding-right:max(240px,calc((100% - 1160px)/2))}@media(max-width:650px){.library-page .library-header{padding-top:66px;padding-right:16px}}
.terms-consult-dialog{width:min(640px,calc(100vw - 32px));max-height:85svh;padding:28px;border:1px solid #ad747b77;border-radius:24px;background:#282127;color:#efc6cf;box-shadow:0 24px 80px #0008}.terms-consult-dialog::backdrop{background:#100b10aa;backdrop-filter:blur(6px)}.terms-consult-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.terms-consult-head h2{margin:0;font:600 28px Georgia,serif}.terms-consult-head button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font:26px Arial;cursor:pointer;transition:background .18s}.terms-consult-head button:hover{background:#ad747b22}.terms-consult-dialog .terms-document{max-height:60svh;color:inherit}.terms-consult-dialog h3{font:600 16px/1.5 Arial;margin:0 0 18px}body[data-theme="light"] .terms-consult-dialog{background:#fff7f2;color:#633d42}@media(max-width:540px){.terms-consult-dialog{padding:22px}.terms-consult-head h2{font-size:24px}}

.terms-document,.terms-document *{user-select:none!important;-webkit-user-select:none!important}.terms-icon-title{display:flex;align-items:center;justify-content:center;gap:12px}.terms-icon-title img{width:32px;height:32px;object-fit:contain;flex-shrink:0}.terms-consult-head .terms-icon-title{justify-content:flex-start}.terms-page header p{font-size:14px;line-height:1.6;margin-top:12px}

.terms-label-icon{display:inline-block;width:20px;height:20px;flex-shrink:0;background:currentColor;mask:url('assets/contrato.png') center/contain no-repeat;-webkit-mask:url('assets/contrato.png') center/contain no-repeat}.theme-terms-link{gap:7px}.theme-terms-link .terms-label-icon{width:16px;height:16px}.terms-document-heading{display:flex;align-items:center;gap:10px}.terms-document-heading img{width:28px;height:28px;object-fit:contain;flex-shrink:0}

.terms-consult-head{position:relative;justify-content:center;min-height:36px;padding-inline:40px}.terms-consult-head h2{text-align:center;width:100%}.terms-consult-head button{position:absolute;right:0;top:0}

/* Align all header controls with the library content. */
.library-page .library-header{padding:0 24px;z-index:10}.library-header .header-inner{max-width:1112px;gap:20px}.library-header .brand{margin-right:auto}.library-page .library-header .themes{position:static;flex-shrink:0}.library-header .header-actions{flex-shrink:0}@media(max-width:850px){.library-header .header-inner{gap:12px}.library-header .header-actions{gap:8px}}@media(max-width:650px){.library-page .library-header{padding:8px 16px}.library-header .header-inner{flex-wrap:wrap;gap:8px;min-height:64px}.library-header .brand{flex:1}.library-page .library-header .themes{margin-left:auto}.library-header .header-actions{margin-left:0}}

/* Keep terms and theme controls in their original screen corner. */
.library-page .library-header .themes{position:fixed;top:20px;right:20px;margin:0}.library-header .header-inner{padding-right:240px}@media(max-width:650px){.library-page .library-header{padding-top:64px}.library-header .header-inner{padding-right:0}.library-page .library-header .themes{top:16px;right:16px}}

.library-header .header-inner{padding-right:max(0px,calc(240px - (100vw - 1112px)/2))}@media(max-width:650px){.library-header .header-inner{padding-right:0}}
