/* Terms and Privacy Policy pages (terms.html / privacy.html) - a plain,
   readable long-form article column rather than the app's card UI. */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.65;
}

.legal-page h1 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.2;
}

.legal-page .legal-updated {
    margin: 0 0 28px;
    color: #6b6b6b;
    font-size: 13px;
}

.legal-page .legal-draft {
    margin: 0 0 28px;
    padding: 12px 16px;
    border: 1px solid #e5d9a8;
    border-radius: 10px;
    background: #fbf7e6;
    font-size: 14px;
}

.legal-page h2 {
    margin: 36px 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.legal-page h3 {
    margin: 24px 0 8px;
    font-size: 16px;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    margin: 0 0 14px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 22px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: inherit;
    text-decoration: underline;
}

.legal-page .legal-callout {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-left: 3px solid #1f1f1f;
    background: #f6f6f4;
}

.legal-page .legal-table-wrap {
    margin: 0 0 16px;
    overflow-x: auto;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-page th,
.legal-page td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    font-weight: 700;
    white-space: nowrap;
}

.legal-page code {
    font-size: 13px;
}

@media (max-width: 600px) {
    .legal-page {
        padding: 24px 16px 60px;
    }

    .legal-page h1 {
        font-size: 26px;
    }
}

/* FAQ page (faq.html) - reuses the legal article column above, with each
   question as a collapsible <details>. */

.faq-page .faq-inline-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.faq-page .faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-page .faq-item summary {
    position: relative;
    padding: 14px 32px 14px 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-page .faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: #6b6b6b;
    font-size: 20px;
    font-weight: 400;
}

.faq-page .faq-item[open] summary {
    font-weight: 600;
}

.faq-page .faq-item[open] summary::after {
    content: "\2212";
}

.faq-page .faq-item summary:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 2px;
}

.faq-page .faq-answer {
    padding: 0 0 6px;
    color: #3a3a3a;
}

/* Little copies of the app's real buttons, shown inline in answers so
   people know what to look for. Not clickable - purely a picture, so
   they mirror the source styles (board_detail.css's .board-action-pill,
   deckd_modals.css's .detail-menu-button, etc.) rather than reuse them.
   If one of those buttons is restyled, update its copy here. */
.faq-page .faq-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 2px;
    vertical-align: middle;
    color: #1f1f1f;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.faq-page .faq-ui svg {
    flex: none;
    width: 15px;
    height: 15px;
}

/* Board/profile action pills: New, Tools, More, Share */
.faq-page .faq-ui-pill {
    height: 30px;
    padding: 0 11px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #ffffff;
}

.faq-page .faq-ui-pill.is-icon-only {
    width: 30px;
    padding: 0;
}

/* An item inside one of those pills' menus */
.faq-page .faq-ui-menu-item {
    height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    background: #f1f1ef;
}

.faq-page .faq-ui-sep {
    color: #8a8a8a;
}

/* "[New] > [Add item]" - kept on one line so a narrow screen never
   splits a button from the menu item it opens. */
.faq-page .faq-ui-path {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 2px;
    vertical-align: middle;
    white-space: nowrap;
}

.faq-page .faq-ui-path .faq-ui {
    margin: 0;
}

/* Round icon-only buttons */
.faq-page .faq-ui-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.faq-page .faq-ui-report {
    background: #f5f5f5;
}

.faq-page .faq-ui-collab {
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.faq-page .faq-ui-eye {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #707070;
}

.faq-page .faq-ui-eye svg {
    width: 17px;
    height: 17px;
}

/* "Show on Explore" toggle, shown switched on */
.faq-page .faq-ui-switch {
    position: relative;
    width: 32px;
    height: 19px;
    border-radius: 999px;
    background: #1f1f1f;
}

.faq-page .faq-ui-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
}

/* Account > Delete account */
.faq-page .faq-ui-danger {
    border-color: #efc9c4;
    color: #b3392c;
}

/* Keeps the full stop/comma after a button copy on the same line as it */
.faq-page .faq-nowrap {
    white-space: nowrap;
}

/* 404 page (templates/404.html) - same article column, plus its two
   way-out buttons. */
.error-page .error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.error-page .error-page-actions a {
    text-decoration: none;
}

/* .legal-page a { color: inherit } outranks .deckd-btn-primary, which left
   the primary button's label dark on its black background. */
.error-page .error-page-actions a.deckd-btn-primary {
    color: #ffffff;
}
