* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f6fb;
    color: #172033;
    font-family: Arial, sans-serif;
}

.legal-page {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 1.25rem;
}

.public-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0 1rem;
}

.public-brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef4ff;
    color: #15427b;
    font-size: 0.85rem;
    font-weight: 900;
}

.public-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-brand-title {
    min-width: 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.legal-card h1 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.65rem;
}

.legal-card h2 {
    margin: 1.25rem 0 0.5rem;
    color: #15427b;
    font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
    color: #334155;
    line-height: 1.6;
}

.legal-card ul {
    padding-left: 1.25rem;
}

.legal-back {
    display: inline-flex;
    margin-top: 1.25rem;
    color: #0c6cec;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.legal-back:active,
.legal-back:focus {
    background: transparent;
    outline: none;
}

.consent a {
    color: #0c6cec;
    font-weight: 800;
    text-decoration: underline;
}

.legal-alert {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.legal-alert--success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.legal-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.legal-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.legal-field,
.legal-fieldset {
    display: grid;
    gap: 0.45rem;
}

.legal-field label,
.legal-fieldset legend {
    color: #172033;
    font-size: 0.9rem;
    font-weight: 800;
}

.legal-field input,
.legal-field textarea {
    width: 100%;
    border: 1px solid #d8e2f1;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    color: #172033;
    font: inherit;
    background: #fff;
    outline: none;
}

.legal-field textarea {
    resize: vertical;
    min-height: 120px;
}

.legal-field input:focus,
.legal-field textarea:focus {
    border-color: #0c6cec;
    box-shadow: 0 0 0 3px rgba(12, 108, 236, 0.12);
}

.legal-hint {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-field--hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal-fieldset {
    margin: 0;
    border: 1px solid #d8e2f1;
    border-radius: 12px;
    padding: 1rem;
}

.legal-radio {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #334155;
    line-height: 1.45;
}

.legal-radio input {
    margin-top: 0.2rem;
    accent-color: #0c6cec;
}

.legal-submit {
    border: none;
    border-radius: 10px;
    padding: 0.95rem 1rem;
    background: #0c6cec;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.legal-submit:active {
    transform: translateY(1px);
}
