/* ==========================================================================
   EASY RIDE - LEGAL & INFORMATIONAL PAGES STYLESHEET (v1006)
   Clean, modern aesthetics matching main page with animated mesh & Flowty Dock
   ========================================================================== */

:root {
    --bg-dark: #040409;
    --card-bg: rgba(14, 15, 24, 0.72);
    --card-border: rgba(255, 255, 255, 0.09);
    --card-border-hover: rgba(0, 122, 255, 0.4);
    --text-main: #efedf4;
    --text-muted: #9b9aab;
    --text-dim: #6d6c7c;
    --accent-blue: #007aff;
    --accent-red: #e83a3e;
    --accent-purple: #8b3ef0;
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Company page: reuse the legal-page palette and document spacing. */
.about-section { scroll-margin-top: 100px; }
.about-lead { margin-top: 20px; max-width: 680px; color: var(--text-muted); font-size: 18px; }
.about-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.about-nav a { padding: 7px 13px; border: 1px solid var(--card-border); border-radius: 100px; color: var(--text-main); text-decoration: none; font-size: 13px; }
.about-nav a:hover { background: rgba(0, 122, 255, 0.12); border-color: #55a0ff; }
.about-nav a:focus-visible, .about-text-link:focus-visible { outline: 2px solid #55a0ff; outline-offset: 4px; }
.doc-body .draft-note { padding: 16px 20px; margin: 20px 0; border: 1px solid rgba(232, 184, 90, .3); border-radius: 14px; background: rgba(232, 184, 90, .06); font-size: 13px; line-height: 1.65; color: #e5c98f; }
.doc-body .draft-note strong { color: #efd29b; }
.doc-body .draft-note p { margin: 7px 0 0; color: #c8bcaa; }
.doc-body .about-company-name { margin-bottom: 6px; font-size: 20px; font-weight: 700; }
.doc-body .about-company-short { color: var(--text-muted); }
.about-address { grid-column: 1 / -1; }
.about-card .req-value { overflow-wrap: anywhere; }
.about-card .req-value-row { align-items: flex-start; }
.about-card .btn-copy { flex-shrink: 0; }
.about-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.about-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.about-panel { min-width: 0; padding: 22px; border: 1px solid var(--card-border); border-radius: 18px; background: rgba(255, 255, 255, .025); }
.doc-body .about-panel h3 { margin: 0 0 12px; }
.doc-body .about-panel p { font-size: 14px; margin-bottom: 14px; }
.doc-body .about-panel p:last-child { margin-bottom: 0; }
.doc-body .about-muted, .about-muted { color: var(--text-muted); font-size: 13px; }
.about-eyebrow { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }
.doc-body .about-price { color: #65acff; font-size: 28px; }
.about-tariffs { margin: 20px 0 12px; }
.about-tariffs > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.about-tariffs > div:last-child { border-bottom: 0; }
.about-tariffs dt { color: var(--text-main); font-size: 14px; }
.about-tariffs dd { margin: 0; color: #65acff; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.about-text-link { display: inline-block; margin-top: 4px; }
.about-stack { margin: 22px 0; border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; }
.about-stack > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); padding: 16px 22px; gap: 18px; border-bottom: 1px solid var(--card-border); }
.about-stack > div:last-child { border-bottom: 0; }
.about-stack dt { color: var(--text-muted); font-size: 14px; }
.about-stack dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .about-two-columns, .about-features { grid-template-columns: 1fr; }
    .about-panel { padding: 18px; }
    .about-stack > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
    .about-lead { font-size: 16px; }
    .doc-body .about-company-name { font-size: 17px; }
    .about-card .req-value-row { flex-wrap: wrap; }
    .about-nav a { padding: 8px 12px; }
    .doc-body .draft-note { padding: 14px 16px; }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent !important;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   TOP HEADER BAR
   Left: "Назад" button | Right: Logo "EASY RIDE"
   ========================================================================== */
.page-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 4, 9, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 90;
    padding: 16px 32px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Back Button (Left Corner) */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #efedf4;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateX(-3px);
    color: #ffffff;
}

.btn-back svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-back:hover svg {
    transform: translateX(-2px);
}

/* Brand Logo (Right Corner) */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */
.page-main {
    flex: 1;
    position: relative;
    z-index: 10;
    padding: 48px 24px 80px 24px;
}

.content-container {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

/* Document Glassmorphic Card */
.doc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 56px 64px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Text matching Main Page */
.gradient-text {
    background-image: linear-gradient(115deg, #007aff 0%, #5d5bf0 28%, #9b3ee0 50%, #d83a52 72%, #e83a3e 100%) !important;
    background-size: 250% 200% !important;
    background-position: 0% 50%;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: gradientShift 4.5s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 0 16px rgba(0, 122, 255, 0.28));
    display: inline-block;
    will-change: background-position;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Document Header */
.doc-header {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--card-border);
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #55a0ff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.doc-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #ffffff;
}

.doc-meta {
    font-size: 15px;
    color: var(--text-muted);
}

/* Document Typography */
.doc-body {
    color: var(--text-main);
    font-size: 15.5px;
    line-height: 1.8;
}

.doc-body p {
    margin-bottom: 20px;
    color: rgba(239, 237, 244, 0.88);
}

.doc-body h2 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 44px;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    padding-left: 14px;
    border-left: 3px solid var(--accent-blue);
}

.doc-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 28px;
    margin-bottom: 14px;
}

.doc-body ol, .doc-body ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.doc-body li {
    margin-bottom: 12px;
    color: rgba(239, 237, 244, 0.85);
}

.doc-body a {
    color: #55a0ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.doc-body a:hover {
    color: #e83a3e;
}

.doc-body strong {
    color: #ffffff;
    font-weight: 700;
}

/* Document Update Badge */
.doc-update-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 24px !important;
}

/* Legal Table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.6;
    text-align: left;
    min-width: 620px;
}

.legal-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.legal-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(239, 237, 244, 0.85);
    vertical-align: top;
}

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

.legal-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Contacts Block */
.contacts-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 28px;
    margin-top: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contacts-block p {
    margin-bottom: 12px;
}

.contacts-block p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================================================== */
.requisites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 36px 0;
}

.requisite-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.requisite-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.req-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.req-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.req-value {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace, var(--font-family);
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* ==========================================================================
   ACCOUNT DELETION PAGE SPECIFIC STYLES
   ========================================================================== */
.delete-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.delete-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.delete-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #efedf4;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: rgba(239, 237, 244, 0.4);
}

.form-input:focus {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18);
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    background: linear-gradient(135deg, #e83a3e 0%, #c41e23 100%);
    border: 1px solid rgba(232, 58, 62, 0.5);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(232, 58, 62, 0.35);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #ff4d52 0%, #d4272c 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 58, 62, 0.5);
}

.btn-delete:active {
    transform: translateY(0);
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-disclaimer {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.form-disclaimer a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Agreement Checkbox Group */
.form-agreement {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    margin: 4px 0;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: 0;
    vertical-align: middle;
}

.form-checkbox:hover {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.form-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
    border-color: #007aff;
}

.form-checkbox:checked {
    background: #007aff;
    border-color: #007aff;
}

.form-checkbox:checked::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-text {
    font-size: 13.5px;
    color: rgba(239, 237, 244, 0.85);
    line-height: 1.5;
}

.checkbox-text a {
    color: #55a0ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #e83a3e;
}


/* Feedback Boxes */
.form-feedback {
    display: none;
    padding: 32px 24px;
    border-radius: 18px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
    background: rgba(232, 58, 62, 0.1);
    border: 1px solid rgba(232, 58, 62, 0.3);
}

.feedback-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.feedback-icon.error {
    background: rgba(232, 58, 62, 0.2);
    color: #e83a3e;
}

.feedback-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.feedback-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 20px auto;
}

/* In-App Steps Section */
.steps-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
}

.steps-header {
    text-align: left;
    margin-bottom: 32px;
}

.steps-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.steps-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-4px);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #55a0ff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.step-img-box {
    width: 100%;
    max-width: 240px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}

.step-img, .step-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.step-caption {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 12px 18px;
    }

    .btn-back {
        padding: 7px 14px;
        font-size: 13px;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .brand-name {
        font-size: 14px;
    }

    .page-main {
        padding: 24px 14px 60px 14px;
    }

    .doc-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .doc-title {
        font-size: clamp(16px, 5.5vw, 24px);
        word-break: break-word;
        hyphens: auto;
    }

    .doc-body {
        font-size: 14.5px;
    }

    .doc-body h2 {
        font-size: 18px;
        margin-top: 32px;
    }

    .requisites-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .delete-form-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .btn-delete {
        width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-img-box {
        max-width: 200px;
    }
}
