/* ============================================================================
   AlmaUnião — component primitives
   ----------------------------------------------------------------------------
   Extracted from the `almauniao-redesign.html` reference mock.

   Naming: everything is prefixed `sw-`, the convention already established by
   this codebase (.sw-btn, .sw-chip, .sw-eyebrow). The mock names these .btn,
   .field and .badge, which would collide head-on with Bootstrap — still loaded
   and still used by ~29 pages. The prefix keeps this system and Bootstrap from
   fighting over the same selectors, so pages migrate one at a time instead of
   all at once.

   Consumes tokens.css. No raw colour, radius or shadow values below.
   ============================================================================ */

/* --- Buttons ---------------------------------------------------------------
   Moved here from theme.css so there is exactly one definition. */

.sw-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: var(--r-pill);
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease,
                box-shadow .16s ease, transform .16s ease;
}

.sw-btn-primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: var(--sh-1);
}

.sw-btn-primary:hover {
    background: var(--brand-700);
    color: #fff;
    box-shadow: var(--sh-2);
    transform: translateY(-1px);
}

.sw-btn-secondary {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-100);
}

.sw-btn-secondary:hover {
    background: var(--brand-100);
    color: var(--brand-700);
}

/* Retained: `sw-btn-outline` predates this file and is used across the app. */
.sw-btn-outline {
    background: transparent;
    color: var(--brand-600);
    border-color: var(--brand-600);
}

.sw-btn-outline:hover {
    background: var(--brand-50);
}

.sw-btn-ghost {
    background: transparent;
    color: var(--ink-700);
    border-color: var(--line);
}

.sw-btn-ghost:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
}

.sw-btn-danger {
    background: var(--danger);
    color: #fff;
}

.sw-btn-danger:hover {
    background: var(--danger);
    filter: brightness(.92);
    color: #fff;
}

.sw-btn-sm {
    font-size: 13px;
    padding: 7px 14px;
}

.sw-btn-lg {
    font-size: 16px;
    padding: 14px 26px;
}

.sw-btn-block {
    width: 100%;
    justify-content: center;
}

.sw-btn:disabled,
.sw-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Focus -----------------------------------------------------------------
   Every interactive primitive gets the same visible ring. */

.chat-msg {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--brand-50);
    max-width: 80%;
}

.chat-msg-own {
    margin-left: auto;
    background: var(--brand-100);
}

.chat-unread-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
    color: var(--brand-600, var(--brand-500));
    font-size: 12px;
    font-weight: 600;
}

.chat-unread-divider::before,
.chat-unread-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--brand-200, var(--line));
}

.chat-unread-divider span {
    padding: 0 10px;
}

.chat-list-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    padding: 8px 16px;
}

.chat-list-item:hover {
    border-color: var(--brand-300);
}

.chat-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 12px;
}

.sw-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--brand-500);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.sw-btn:focus-visible,
.sw-nav-link:focus-visible,
.sw-chip:focus-visible,
.sw-role-opt:focus-visible,
a.sw-focusable:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* --- Fields ----------------------------------------------------------------
   Label sits ABOVE the control, left-aligned. Placeholders are never used as
   labels — see UiField.razor. */

.sw-field {
    margin-bottom: 16px;
}

.sw-field label,
.sw-field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
    text-align: start;
    padding: 0;
}

/* Grouped controls (the role picker). A fieldset/legend rather than a loose
   label, so assistive tech announces the group name with each option. */
.sw-fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
    min-inline-size: 0;
}

.sw-field input,
.sw-field select,
.sw-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-900);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sw-field textarea {
    min-height: 120px;
    resize: vertical;
}

.sw-field input::placeholder,
.sw-field textarea::placeholder {
    color: var(--ink-300);
    text-align: start;
}

.sw-field input:focus,
.sw-field select:focus,
.sw-field textarea:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: var(--focus);
}

.sw-field input:disabled,
.sw-field select:disabled,
.sw-field textarea:disabled {
    background: var(--surface-subtle);
    color: var(--ink-400);
    cursor: not-allowed;
}

.sw-field .sw-hint {
    font-size: 12.5px;
    color: var(--ink-500);
    margin-top: 5px;
}

.sw-field .sw-required {
    color: var(--danger);
    margin-left: 3px;
}

/* A control with an adornment (status badge, unit, small action) beside it. */
.sw-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-field-row > input {
    flex: 1;
    min-width: 0;
}

/* Text button that reads as a link but is a real <button> — used where the
   action submits a form rather than navigating. */
.sw-link-btn {
    display: inline-block;
    background: none;
    border: 0;
    padding: 0;
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--brand-600);
    cursor: pointer;
    text-decoration: underline;
}

.sw-link-btn:hover {
    color: var(--brand-700);
}

.sw-link-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: var(--r-sm);
}

/* Validation. Blazor stamps .invalid / .modified on the control itself. */
.sw-field input.invalid,
.sw-field select.invalid,
.sw-field textarea.invalid {
    border-color: var(--danger);
    outline: none;
}

.sw-field .validation-message {
    display: block;
    font-size: 12.5px;
    color: var(--danger);
    margin-top: 5px;
}

/* --- Badges ---------------------------------------------------------------- */

.sw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.sw-badge-success { background: var(--success-bg); color: var(--success); }
.sw-badge-warn    { background: var(--warn-bg);    color: var(--warn); }
.sw-badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.sw-badge-brand   { background: var(--brand-50);   color: var(--brand-700); }
.sw-badge-neutral { background: var(--surface-subtle);  color: var(--ink-500); border: 1px solid var(--line); }

/* --- Chips ------------------------------------------------------------------ */

.sw-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    white-space: nowrap;
}

/* Neutral chip used for practitioner attributes (online/in-person, city). */
.sw-chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ink-500);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.sw-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

/* --- Cards ------------------------------------------------------------------ */

.sw-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

.sw-card-pad {
    padding: 22px;
}

.sw-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-500);
    margin-bottom: 16px;
}

/* --- Practitioner card ------------------------------------------------------
   Backs PractitionerCard.razor. The Catalog page had a near-identical `.pcard`
   in its scoped stylesheet; this is that pattern promoted to a shared one. */

.sw-practitioner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.sw-pcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-1);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sw-pcard:hover {
    box-shadow: var(--sh-3);
    transform: translateY(-3px);
    border-color: var(--brand-200);
}

.sw-pcard.featured {
    border: 1.5px solid var(--brand-300);
    box-shadow: 0 0 0 4px var(--brand-50), var(--sh-2);
}

.sw-pcard-cover {
    height: 96px;
    position: relative;
    background: var(--card-gradient-purple);
}

.sw-pcard.sage .sw-pcard-cover {
    background: var(--card-gradient-teal);
}

.sw-pcard .sw-feat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-700);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    letter-spacing: .03em;
    box-shadow: var(--sh-1);
}

.sw-pcard .sw-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    position: absolute;
    left: 20px;
    bottom: -36px;
    background: var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--brand-700);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

.sw-pcard .sw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-pcard.sage .sw-avatar {
    background: var(--sage-100);
    color: var(--sage-700);
}

/* Practitioner profile-photo editor (ProfileEditor.razor) — same circle treatment as
   .sw-pcard .sw-avatar above, standalone since it isn't nested in a card cover. */
.sw-photo-editor {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.sw-photo-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    background: var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--brand-700);
    overflow: hidden;
}

.sw-photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-photo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sw-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sw-photo-input:disabled + label {
    opacity: 0.6;
    pointer-events: none;
}

/* Small avatar for list rows (MyClients/MyPractitioners/MyBookings) — same circle treatment as
   .sw-pcard .sw-avatar / .sw-photo-avatar above, just sized for a row rather than a card or editor. */
.sw-avatar-sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-700);
    overflow: hidden;
}

.sw-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-pcard-body {
    padding: 48px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sw-pcard-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sw-verified {
    color: var(--brand-500);
    font-size: 15px;
}

.sw-pcard-role {
    color: var(--ink-500);
    font-size: 14px;
    margin: 2px 0 12px;
}

.sw-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: var(--ink-700);
    font-weight: 600;
}

.sw-rating .sw-stars {
    color: var(--gold-400);
    letter-spacing: 1px;
}

.sw-rating .sw-count {
    color: var(--ink-500);
    font-weight: 500;
}

.sw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}

.sw-pcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid var(--line);
}

.sw-price {
    font-size: 13px;
    color: var(--ink-500);
}

.sw-price b {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--ink-900);
    font-weight: 600;
}

/* --- Auth ------------------------------------------------------------------- */

.sw-auth {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 26px;
}

.sw-auth-wide {
    max-width: 520px;
}

.sw-auth h1,
.sw-auth h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    color: var(--ink-900);
}

.sw-auth .sw-sub {
    text-align: center;
    color: var(--ink-500);
    margin: 6px 0 26px;
    font-size: 15px;
}

.sw-auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13.5px;
}

.sw-auth-links a {
    color: var(--brand-600);
    text-decoration: none;
    margin: 0 8px;
}

.sw-auth-links a:hover {
    text-decoration: underline;
}

.sw-auth-links p {
    margin: 0 0 6px;
}

/* Validation summary — Blazor renders a <ul> of messages. */

.sw-validation-summary {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    color: var(--danger);
    font-size: 13.5px;
}

.sw-validation-summary:not(:empty) {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--r-sm);
    padding: 12px 14px;
}

.sw-validation-summary li {
    list-style: none;
}

/* --- Alerts ------------------------------------------------------------------
   Backs StatusMessage.razor. */

.sw-alert {
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.sw-alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.sw-alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

.sw-alert-info {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-100);
}

/* Inline explanatory paragraph — replaces Bootstrap's .text-info. */
.sw-note {
    font-size: 14px;
    color: var(--ink-500);
    margin-bottom: 18px;
}

/* Checkbox row — checkbox and its label on one line. */

.sw-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ink-700);
    margin-bottom: 18px;
    cursor: pointer;
}

.sw-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-600);
    margin: 0;
    cursor: pointer;
    flex: none;
}

.sw-check input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* Role picker — replaces the Bootstrap radio list on Register. The radio input
   itself stays in the DOM (visually hidden) so keyboard and screen-reader
   behaviour, and Blazor's binding, are unchanged. */

.sw-role-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px 0 18px;
}

.sw-role-opt {
    position: relative;
    display: block;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    background: var(--surface);
    transition: border-color .15s ease, background-color .15s ease;
}

.sw-role-opt:hover {
    border-color: var(--brand-300);
}

.sw-role-opt .sw-ico {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.sw-role-opt .sw-t {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
    color: var(--ink-900);
}

.sw-role-opt .sw-d {
    display: block;
    font-size: 12px;
    color: var(--ink-500);
}

/* Visually hidden, still focusable and still announced. */
.sw-role-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.sw-role-opt:has(input[type="radio"]:checked) {
    border-color: var(--brand-400);
    background: var(--brand-50);
}

.sw-role-opt:has(input[type="radio"]:focus-visible) {
    box-shadow: var(--focus);
}

/* --- Account area ------------------------------------------------------------
   Two-column shell for /Account/Manage, replacing the Bootstrap grid + nav-pills. */

.sw-manage {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 26px 56px;
}

.sw-manage-head {
    margin-bottom: 28px;
}

.sw-manage-head h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 30px;
    color: var(--ink-900);
}

.sw-manage-head .sw-sub {
    color: var(--ink-500);
    font-size: 15px;
    margin-top: 6px;
}

.sw-manage-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 760px) {
    .sw-manage-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sw-manage-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-manage-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    color: var(--ink-700);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.sw-manage-link:hover {
    background: var(--surface-subtle);
    color: var(--brand-700);
}

.sw-manage-link.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
}

.sw-manage-link:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.sw-manage-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    padding: 26px;
    min-width: 0;
}

.sw-manage-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 21px;
    color: var(--ink-900);
    margin-bottom: 20px;
}

/* Constrain form width inside the panel without a grid wrapper. */
.sw-form-narrow {
    max-width: 460px;
}

/* --- Editor panels -----------------------------------------------------------
   Stacked form panels, e.g. the practitioner profile editor. */

.sw-editor {
    padding: 32px 26px 56px;
}

.sw-page-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    color: var(--ink-900);
    margin-bottom: 20px;
}

/* Two columns so the editor fits on one screen instead of stacking to a long
   scroll. minmax(0, …) rather than 1fr: grid items default to min-content
   width, which lets a long offering name push the column wider than its
   share and overflow the page. */
.sw-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sw-editor-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

@media (max-width: 1000px) {
    .sw-editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .sw-editor {
        padding: 24px 16px 40px;
    }
}

/* Width comes from the grid column; the panel just fills it. */
.sw-panel {
    margin: 0;
}

.sw-section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink-900);
    margin-bottom: 14px;
}

.sw-subsection-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    color: var(--ink-900);
    margin: 24px 0 12px;
}

/* Nested card inside a panel — an offering row, a suggestion. */
.sw-subcard {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 12px;
    background: var(--surface-subtle);
}

.sw-subcard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-offering-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-900);
    margin: 0;
}

.sw-offering-meta {
    font-size: 13px;
    color: var(--ink-500);
    margin: 4px 0 0;
}

.sw-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sw-error-list {
    margin: 0;
    padding-left: 18px;
}

.sw-error-list li {
    margin: 2px 0;
}

/* --- Empty state ------------------------------------------------------------ */

.sw-soon {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-500);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    padding: 2px 9px;
    border-radius: var(--r-pill);
}

/* --- Footer ------------------------------------------------------------------ */

.sw-footer {
    margin-top: 48px;
    padding: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sw-footer-links {
    display: flex;
    gap: 20px;
}

.sw-footer-links a {
    color: var(--ink-500);
    font-size: 14px;
    text-decoration: none;
}

.sw-footer-links a:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

.sw-footer-copy {
    color: var(--ink-500);
    font-size: 13px;
    margin: 0;
}

/* --- Legal pages --------------------------------------------------------------
   Draft banner + inline placeholder highlight: keeps unfilled business facts
   (legal entity, NIF, address, contact) impossible to miss before launch. */

.legal-draft-banner {
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid var(--warn);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    line-height: 1.7;
}

.legal-page h1 {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.legal-page h2 {
    font-family: var(--font-display);
    margin-top: 36px;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
    color: var(--ink-700);
}

.legal-page .legal-updated {
    color: var(--ink-500);
    font-size: 13px;
    margin-bottom: 24px;
}

.legal-placeholder {
    background: var(--warn-bg);
    color: var(--warn);
    border-radius: 4px;
    padding: 0 4px;
    font-weight: 600;
    font-style: normal;
}

/* --- Cookie notice ------------------------------------------------------------
   Purely informational (only essential cookies are set — see /privacidade), so
   this never blocks or gates anything; it just discloses and links out. Dismissal
   is remembered via localStorage, not a cookie, and needs no server round-trip —
   see wwwroot/js/cookie-notice.js. */

.cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.cookie-notice p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-500);
    flex: 1 1 280px;
}

.cookie-notice a {
    color: var(--brand-600);
}
