/* Shared document-style pages and forms (DMCA request, DMCA policy, Contact, Feedback, Report).
   Same type scale and tokens as the legal pages. Dark + light colocated. */

/* The site sets overflow-x: hidden on html and body, which stops the sticky panel from sticking. */
html:has(.df-page),
body:has(.df-page) {
    overflow-x: clip;
}

.df-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    color: #cbd5e1;
}

/* Heading, form and side panel each sit in their own rounded container (same look as legal-doc.css). */
.df-head,
.df-layout > :first-child,
.df-aside {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
}

.df-head {
    margin-bottom: 1.25rem;
    padding: 2rem 2.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(15, 23, 42, 0.6) 65%);
}

.df-head .df-lead {
    max-width: 68ch;
}

.df-layout > :first-child,
.df-aside {
    padding: 2rem 2.25rem;
}

@media (max-width: 600px) {
    .df-head,
    .df-layout > :first-child,
    .df-aside {
        padding: 1.5rem 1.25rem;
    }
}

.df-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #818cf8;
}

.df-head h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f8fafc;
}

.df-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* Alerts */
.df-alert {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid;
    border-radius: 0 10px 10px 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

.df-alert p,
.df-alert ul {
    margin: 0;
}

.df-alert ul {
    padding-left: 1.1rem;
}

.df-alert-title {
    margin-bottom: 0.25rem !important;
    font-weight: 700;
}

.df-alert--success {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.09);
    color: #d1fae5;
}

.df-alert--error {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.09);
    color: #fee2e2;
}

/* Layout */
.df-layout {
    display: grid;
    gap: 1.25rem;
}

.df-aside h2 {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.df-aside p {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.df-aside a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Reported series */
.df-target {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
}

.df-target img {
    width: 56px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
}

.df-target p {
    margin: 0;
}

.df-target-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.df-target-title {
    margin-top: 0.15rem !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.df-target-meta {
    margin-top: 0.15rem !important;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Steps */
.df-step {
    margin: 0 0 2.25rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.df-step legend {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin-bottom: 1.1rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.df-num {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(129, 140, 248, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    color: #c7d2fe;
}

.df-field {
    margin-bottom: 1.25rem;
}

.df-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.df-field input,
.df-field textarea {
    resize: vertical;
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    font-size: 1rem;
    color: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.df-field input::placeholder,
.df-field textarea::placeholder {
    color: #64748b;
}

.df-field input:focus,
.df-field textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.df-field input:user-invalid,
.df-field textarea:user-invalid {
    border-color: #f87171;
}

.df-help {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #94a3b8;
}

.df-check {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
}

.df-check input {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    accent-color: #6366f1;
}

.df-check label {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.df-submit {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.df-submit:hover {
    background: #4338ca;
}

.df-submit:focus-visible,
.df-aside a:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 3px;
}

@media (max-width: 559px) {
    .df-submit {
        width: 100%;
    }
}

@media (min-width: 960px) {
    .df-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    .df-aside {
        position: sticky;
        top: 6.5rem;
    }
}

html[data-theme="light"] .df-page,
html[data-theme="light"] .df-lead,
html[data-theme="light"] .df-aside p,
html[data-theme="light"] .df-check label { color: #334155; }
html[data-theme="light"] .df-eyebrow { color: #4338ca; }
html[data-theme="light"] .df-head h1,
html[data-theme="light"] .df-step legend,
html[data-theme="light"] .df-target-title { color: #0f172a; }
html[data-theme="light"] .df-aside h2,
html[data-theme="light"] .df-help,
html[data-theme="light"] .df-target-label,
html[data-theme="light"] .df-target-meta { color: #64748b; }
html[data-theme="light"] .df-aside a { color: #4338ca; }
html[data-theme="light"] .df-field label { color: #1e293b; }
html[data-theme="light"] .df-field input,
html[data-theme="light"] .df-field textarea { border-color: #cbd5e1; background: #ffffff; color: #0f172a; }
html[data-theme="light"] .df-field input::placeholder,
html[data-theme="light"] .df-field textarea::placeholder { color: #94a3b8; }
html[data-theme="light"] .df-field input:focus,
html[data-theme="light"] .df-field textarea:focus { border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2); }
html[data-theme="light"] .df-field input:user-invalid,
html[data-theme="light"] .df-field textarea:user-invalid { border-color: #dc2626; }
html[data-theme="light"] .df-step legend { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .df-num { background: #e0e7ff; color: #3730a3; }
html[data-theme="light"] .df-check,
html[data-theme="light"] .df-target { border-color: #e2e8f0; background: #f4f7fa; }
html[data-theme="light"] .df-alert--success { background: #ecfdf5; color: #065f46; border-color: #059669; }
html[data-theme="light"] .df-alert--error { background: #fef2f2; color: #7f1d1d; border-color: #dc2626; }

html[data-theme="light"] .df-head,
html[data-theme="light"] .df-layout > :first-child,
html[data-theme="light"] .df-aside { border-color: #dde3ea; background: #f4f7fa; }
html[data-theme="light"] .df-head { background: linear-gradient(135deg, #e0e7ff, #f4f7fa 65%); }

.df-optional {
    font-weight: 400;
    color: #94a3b8;
}

/* Inside a legal document the paragraph rules are more specific; restore the muted help text. */
.legal-doc .df-form .df-help {
    margin: 0.4rem 0 0;
    color: #94a3b8;
}

.legal-doc .df-alert p {
    margin: 0;
    color: inherit;
}

html[data-theme="light"] .df-optional,
html[data-theme="light"] .legal-doc .df-form .df-help { color: #64748b; }

.df-field textarea {
    font-family: inherit;
    resize: vertical;
}

/* Select, read-only fields, section title and the link-styled button (Contact page) */
.df-field select {
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    font-size: 1rem;
    color: #f8fafc;
}

.df-field select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.df-field input[readonly] {
    opacity: 0.75;
    cursor: not-allowed;
}

.df-section-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.df-text {
    margin: 0 0 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
}

a.df-submit--link {
    text-decoration: none;
}

html[data-theme="light"] .df-field select { border-color: #cbd5e1; background: #ffffff; color: #0f172a; }
html[data-theme="light"] .df-field select:focus { border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2); }
html[data-theme="light"] .df-section-title { color: #0f172a; }
html[data-theme="light"] .df-text { color: #334155; }
