/* Extra styles for the Compliance page (and reusable for Support and Development).
   Builds on the tokens and classes in the main stylesheet. */

/* Generic content section with the same outer spacing as the homepage */
.page-section {
    margin: 3rem;
}

.page-section > h2 {
    padding-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* Introduction panel, same look as the homepage about panel */
.intro-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 2px solid var(--color-2);
    border-radius: 1rem;
}

.intro-panel h2 {
    padding-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-panel p {
    line-height: 1.6;
    max-width: 100ch;
}

.intro-values ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.intro-values li {
    line-height: 1.6;
}

.intro-values li + li {
    margin-top: 0.5rem;
}

/* Package cards: three columns on desktop */
.packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.package-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 2px solid var(--color-5);
    border-radius: 1rem;
    background: var(--color-4);
}

.package-card h3 {
    font-size: 1.25rem;
    color: var(--color-1);
}

.package-card__for {
    padding: .5rem 0 1rem;
    font-family: var(--font-2);
    line-height: 1.5;
}

.package-card ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    font-family: var(--font-2);
}

.package-card li {
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-5);
    line-height: 1.4;
}

/* Lead time and price sit just above the button */
.package-card__meta {
    margin-top: auto;
    padding-bottom: 1.25rem;
    font-family: var(--font-2);
    line-height: 1.6;
}

/* Process steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding: 1.25rem;
    border: 2px solid var(--color-5);
    border-radius: 1rem;
}

.steps li::before {
    content: counter(step);
    display: block;
    margin-bottom: .5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-2);
}

.steps h3 {
    padding-bottom: .5rem;
    font-size: 1.125rem;
}

.steps p {
    font-family: var(--font-2);
    line-height: 1.5;
}

/* Buttons inside cards and panels, same style as the homepage about button */
.package-card .button,
.contact-form .button {
    width: 100%;
    color: var(--color-5);
    border: 3px solid var(--color-2);
    box-shadow: 1px 1px 0px 0px var(--color-2), 2px 2px 0px 0px var(--color-2), 3px 3px 0px 0px var(--color-2), 4px 4px 0px 0px var(--color-2), 5px 5px 0px 0px var(--color-2);
}

.package-card .button:hover,
.contact-form .button:hover {
    background: var(--color-3);
}

.package-card .button:active,
.contact-form .button:active {
    box-shadow: 0px 0px 0px 0px;
}

.contact-form .button {
    margin-top: 1.5rem;
}

/* Tablet: stack the packages, two columns of steps */
@media (max-width: 900px) {
    .packages { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: smaller outer spacing, one column of steps */
@media (max-width: 600px) {
    .page-section { margin: 2rem 1rem; }
    .steps { grid-template-columns: 1fr; }
}

/* Wide text column on the left, slim values column on the right */
@media (min-width: 50rem) {
    .intro-panel {
        grid-template-columns: 1fr minmax(14rem, 20rem);
        column-gap: 3rem;
    }
}

/* ------------------------------------------------------------------
   FAQ and contact section
   Copied from the homepage stylesheet so this page does not depend on
   which file it links to. Safe to delete once the shared stylesheet
   contains these rules.
   ------------------------------------------------------------------ */

.contact {
    margin: 0 3rem;
    padding: 3rem 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.contact > .FAQ,
.contact-form {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 2px solid var(--color-5);
    border-radius: 1rem;
    background: var(--color-4);
}

.contact h2 {
    padding-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* FAQ questions and answers */
.FAQ details {
    border-bottom: 1px solid var(--color-5);
}

.FAQ summary {
    display: block;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-2);
}

.FAQ summary:focus-visible {
    outline: 3px solid var(--color-2);
    outline-offset: 2px;
}

.FAQ details[open] > summary {
    background-color: var(--color-3);
    color: var(--color-5);
}

.FAQ details p {
    padding: 1rem;
    line-height: 1.6;
}

.package-card__example {
    margin: 1rem 0;
}

.packages__note {
    margin-top: 1.5rem;
}

/* Contact information */
.contact-form p {
    margin-bottom: 1.25rem;
}

.contact-form ul {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-form li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-2);
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--color-5);
}

.contact-form li a {
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--color-2);
}

@media (max-width: 800px) {
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .contact { margin: 0 1rem; padding-top: 2rem; }
}