{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Footer Block",
  "description": "Multi-column footer with links and copyright",
  "type": "object",
  "properties": {
    "copyright": {
      "type": "string",
      "title": "Copyright Text",
      "description": "Copyright notice displayed at the bottom",
      "default": "© 2025 Your Company. All rights reserved.",
      "x-editor": "text"
    },
    "columns": {
      "type": "array",
      "title": "Footer Columns",
      "description": "Columns with headings and links",
      "x-editor": "array",
      "items": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string",
            "title": "Column Heading",
            "description": "Title for this column",
            "x-editor": "text"
          },
          "links": {
            "type": "array",
            "title": "Links",
            "description": "Links in this column",
            "x-editor": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "title": "Link Text",
                  "description": "Display text for the link",
                  "x-editor": "text"
                },
                "page_id": {
                  "type": "string",
                  "title": "Page",
                  "description": "Select an internal page (overrides URL)",
                  "x-editor": "page-select"
                },
                "url": {
                  "type": "string",
                  "title": "External URL",
                  "description": "External URL (used if no page selected)",
                  "x-editor": "url"
                }
              },
              "required": ["text"]
            }
          }
        },
        "required": ["heading"]
      }
    }
  }
}
