/**
 * «Правообладателям» — только то, чего нет в download-1.css:
 * текстовые карточки, состояния формы и сама форма.
 * Базовые стили страницы (body, hero, content-container, типографика)
 * берутся из download-1.css, чтобы страница выглядела как остальной сайт.
 */

.legal-container {
    max-width: 980px;
}

/* Заголовок hero на юридических страницах: длинные слова вроде
   «конфиденциальности» не должны вылезать за край экрана на телефоне. */
.hero-title {
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.05;
}

.legal-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--grey-text);
}

.legal-block {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.45);
}

.legal-block > h2 {
    margin-top: 0;
}

.legal-block > :last-child {
    margin-bottom: 0;
}

.legal-container ul.legal-list,
.legal-container ol.legal-list {
    margin: 0;
    padding-left: 1.4rem;
}

.legal-container .legal-list li {
    margin-bottom: 0.85rem;
    color: var(--grey-text);
    line-height: 1.75;
}

.legal-container .legal-list li::marker {
    color: var(--neon-pink);
}

.legal-container .legal-list strong {
    color: var(--white);
}

.legal-note {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 245, 255, 0.06);
    color: var(--grey-text);
    line-height: 1.7;
}

.legal-table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-table td {
    color: var(--grey-text);
    line-height: 1.6;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-container code {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9fdff;
    font-size: 0.9em;
}

.checkbox-row a {
    color: var(--neon-cyan);
}

.legal-alert {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    line-height: 1.65;
}

.legal-alert--success {
    border-color: rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.08);
    color: #d9fdff;
}

.legal-alert--error {
    border-color: rgba(255, 0, 110, 0.45);
    background: rgba(255, 0, 110, 0.1);
    color: #ffd9e6;
}

.legal-form-title {
    margin: 3rem 0 0.5rem;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.claim-form {
    margin-top: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--neon-pink);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.55);
}

.claim-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.form-field label span {
    color: var(--neon-pink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.85);
    color: var(--white);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
    appearance: none;
    padding-right: 2.4rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--grey-text) 50%),
        linear-gradient(135deg, var(--grey-text) 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(176, 176, 176, 0.5);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(255, 0, 110, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.16);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: #ff5c93;
    font-size: 0.84rem;
    line-height: 1.4;
}

.claim-form__checks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--grey-text);
    font-size: 0.92rem;
    line-height: 1.55;
    cursor: pointer;
}

.checkbox-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--neon-pink);
}

.claim-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.claim-form__actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 1rem 1.6rem;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff006e, #9d4edd 55%, #00f5ff);
    color: #08080c;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 0, 110, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.claim-form__actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.28);
}

.claim-form__actions .btn-primary:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

.form-hint {
    margin: 0;
    color: rgba(176, 176, 176, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal-back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

.legal-back:hover,
.legal-back:focus-visible {
    color: var(--neon-pink);
    border-bottom-color: var(--neon-pink);
}

@media (max-width: 720px) {
    .content-container.legal-container {
        padding: 1.5rem;
    }

    .legal-block {
        padding: 1.25rem 1.15rem;
    }

    .claim-form {
        padding: 1.25rem;
    }

    .claim-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .claim-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .claim-form__actions .btn-primary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-field input,
    .form-field select,
    .form-field textarea {
        transition: none;
    }
}
