/* Shared styles for LinearFiles inner pages (contact, privacy, terms, download, admin). Builds on home.css. */
.lf-page {
    position: relative;
    flex: 1;
    padding: clamp(28px, 6vw, 64px) 16px clamp(40px, 7vw, 80px);
    background:
        radial-gradient(520px 320px at 8% 4%, rgba(255, 224, 138, 0.55), transparent 70%),
        radial-gradient(560px 380px at 96% 0%, rgba(217, 208, 251, 0.55), transparent 70%),
        linear-gradient(#fffdf6, #fff9ea);
    overflow: hidden;
}
.lf-page-inner { position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto; }
.lf-page-inner.wide { max-width: 1120px; }
.lf-page-head { text-align: center; margin-bottom: 26px; }
.lf-page-head h1 { margin: 14px 0 8px; font-size: clamp(1.9rem, 5.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; color: var(--ink); word-break: break-word; }
.lf-page-head h1 span { color: var(--gold-text); }
.lf-page-head p { margin: 0 auto; max-width: 560px; color: var(--text); font-size: clamp(0.98rem, 2.2vw, 1.08rem); line-height: 1.5; font-weight: 500; }

.lf-card {
    padding: clamp(20px, 4vw, 34px);
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #f3ead0;
    box-shadow: 0 18px 50px rgba(120, 90, 0, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ---------- Forms ---------- */
.lf-form .lf-row { margin-bottom: 4px; }
.lf-field > span em { color: var(--red); font-style: normal; margin-left: 2px; }
.lf-field .lf-input { display: block; }
.lf-field.invalid .lf-input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14); }
.lf-field .lf-err { display: block; min-height: 0; margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: #b42318; }
.lf-field .lf-err:empty { display: none; }
.lf-field .lf-count { display: block; margin-top: 4px; text-align: right; font-size: 12px; color: var(--muted); }
.lf-form textarea.lf-input { height: 150px; }
.lf-captcha { margin: 6px 0 4px; overflow-x: auto; }
.lf-captcha > div { max-width: 100%; }
.lf-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.lf-alert.ok { background: #ecfdf3; color: #146c38; border: 1px solid #b7ebcc; }
.lf-alert.err { background: #fef3f2; color: #b42318; border: 1px solid #fcd0cb; }
.lf-alert .ico { margin-top: 2px; font-size: 18px; }
.lf-form .lf-btn.block { margin-top: 12px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal / prose ---------- */
.lf-prose h2 { margin: 26px 0 8px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.lf-prose h2:first-child { margin-top: 0; }
.lf-prose p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.lf-prose a { color: var(--gold-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lf-updated { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Download ---------- */
.lf-dl { text-align: center; }
.lf-dl .ficon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 24px; background: #fff3cf; color: var(--gold-dark); font-size: 40px; }
.lf-dl .ficon.bad { background: #fef3f2; color: var(--red); }
.lf-dl h1 { margin: 0 0 8px; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lf-dl .meta { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.lf-dl .file-preview { display: block; max-width: 100%; max-height: 420px; margin: 0 auto 22px; border-radius: 14px; background: #f6f7fa; }
.lf-dl audio.file-preview { width: 100%; max-height: none; }
.lf-dl .lf-btn { text-decoration: none; padding: 0 34px; height: 52px; font-size: 16px; }
.lf-dl .back { margin: 22px 0 0; font-size: 14px; }
.lf-dl .back a { color: var(--gold-dark); font-weight: 700; }

/* ---------- Admin ---------- */
.lf-admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lf-admin-bar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lf-admin-bar select { height: 42px; padding: 0 12px; border: 1px solid #dfe3ec; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.lf-admin-bar select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(255, 194, 14, 0.25); }
.lf-admin-bar .lf-btn { height: 42px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.lf-admin-bar .clear { font-size: 14px; color: var(--muted); text-decoration: underline; }
.lf-admin-bar .total { font-size: 14px; font-weight: 700; color: var(--text); }
.lf-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.lf-table { width: 100%; min-width: 780px; border-collapse: collapse; background: #fff; }
.lf-table th, .lf-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lf-table td:nth-child(2) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.lf-table th { background: #fffaf0; color: #7a5b00; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.lf-table tr:last-child td { border-bottom: 0; }
.lf-table tbody tr:hover td { background: #fffdf5; }
.lf-table a { color: var(--gold-dark); font-weight: 700; text-decoration: underline; }
.lf-table .empty { padding: 40px; text-align: center; color: var(--muted); }
.lf-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; font-size: 14px; }
.lf-pager a { color: var(--gold-dark); font-weight: 700; text-decoration: underline; }
.lf-pager .off { color: #b3b8c4; }

@media (max-width: 640px) {
    .lf-card { border-radius: 18px; }
    .lf-row { grid-template-columns: 1fr; }
    .lf-prose p { font-size: 15px; }
    .lf-nav { flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
}
